Skip to content

Commit 59d217e

Browse files
committed
Add comment to generate random bytes
1 parent e8b4781 commit 59d217e

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

Encrypt/AesEncryption/BaseAesEncryption.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,7 @@ public virtual byte[] EncryptAES(byte[] data, byte[] key, byte[] iv)
3636

3737
// Method to generate a random byte array of given length
3838
// Used to get the IV
39+
// Generate a random 16-byte IV for AES in CBC mode
3940
public static byte[] GenerateRandomBytes(int length)
4041
{
4142
byte[] randomBytes = new byte[length];

0 commit comments

Comments
 (0)