Skip to content

Commit 78aac96

Browse files
authored
Merge pull request #8 from selfmadecode/dev_raphael_aes
Renamed encryption class
2 parents d56b8cf + fe91dda commit 78aac96

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44

55
namespace SafeCrypt
66
{
7-
public class Encrypt : BaseAesEncryption
7+
public class AesEncryption : BaseAesEncryption
88
{
99
public byte[] AesEncrypt(byte[] data, byte[] secretKey, byte[] iv)
1010
=> EncryptAES(data, secretKey, iv);
@@ -20,7 +20,7 @@ public byte[] AesEncrypt(string data, string secretKey, string iv)
2020
return EncryptAES(aesData, aesKey, aesIv);
2121
}
2222

23-
public AesData AesEncrypt(string data, string secretKey)
23+
public AesEncryptionData AesEncrypt(string data, string secretKey)
2424
{
2525
NullChecks(data, secretKey);
2626

@@ -30,7 +30,7 @@ public AesData AesEncrypt(string data, string secretKey)
3030

3131
var response = EncryptAES(aesData, aesKey, aesIv);
3232

33-
var responseData = new AesData
33+
var responseData = new AesEncryptionData
3434
{
3535
Data = response,
3636
Iv = aesIv
@@ -88,7 +88,7 @@ private void NullChecks(string data, string secretKey)
8888
}
8989
}
9090

91-
public class AesData
91+
public class AesEncryptionData
9292
{
9393
public byte[] Data { get; set; }
9494
public byte[] Iv { get; set; }

0 commit comments

Comments
 (0)