Skip to content

Commit 6bd0028

Browse files
committed
updated method
1 parent bc41ff6 commit 6bd0028

1 file changed

Lines changed: 1 addition & 3 deletions

File tree

Encrypt/AesEncryption/AesEncryption.cs

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,15 +14,13 @@ public byte[] AesDecrypt(byte[] data, byte[] secretKey, byte[] iv)
1414

1515
public byte[] AesEncrypt(string data, string secretKey, string iv)
1616
{
17-
NullChecks(data, secretKey, iv);
18-
17+
NullChecks(data, secretKey, iv);
1918
var convertedKeys = ConvertKeysToBytes(secretKey, iv);
2019

2120
var aesKey = convertedKeys.Item1;
2221
var aesIv = convertedKeys.Item2;
2322

2423
var aesData = data.HexadecimalStringToByteArray();
25-
2624
return EncryptAES(aesData, aesKey, aesIv);
2725
}
2826

0 commit comments

Comments
 (0)