Skip to content

Commit d6d4e35

Browse files
committed
feat: update program class with namespace and class name change for aes class
1 parent a3630c9 commit d6d4e35

1 file changed

Lines changed: 3 additions & 4 deletions

File tree

src/SafeCrypt.Test/Program.cs

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
// See https://aka.ms/new-console-template for more information
22

3-
using SafeCrypt.AESDecryption;
4-
using SafeCrypt.AESEncryption;
3+
using SafeCrypt.AES;
54
using SafeCrypt.Models;
65

76
var dataToEncrypt = "Data to Encrypt";
@@ -10,7 +9,7 @@
109
// Encryption process
1110
// this method generates a random IV key for the encryption process
1211
// the IV is returned in the response with other properties
13-
var response = await AesEncryption.EncryptToBase64StringAsync(dataToEncrypt, secret);
12+
var response = await Aes.EncryptToBase64StringAsync(dataToEncrypt, secret);
1413

1514
Console.WriteLine("............Encryption Started............");
1615

@@ -27,7 +26,7 @@
2726
DataToDecrypt = response.EncryptedData
2827
};
2928

30-
var decryptionData = await AesDecryption.DecryptFromBase64StringAsync(decryptorParam);
29+
var decryptionData = await Aes.DecryptFromBase64StringAsync(decryptorParam);
3130

3231
Console.WriteLine("............Decryption Started............");
3332
Console.WriteLine($"Decrypted data: { decryptionData.DecryptedData }");

0 commit comments

Comments
 (0)