Skip to content

Commit a3630c9

Browse files
committed
feat: update readme doc to use newly created AES class and namespace for encryption and decryption
1 parent 575b2ff commit a3630c9

1 file changed

Lines changed: 4 additions & 6 deletions

File tree

README.md

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -39,8 +39,7 @@ Now, you can reference the SafeCrypt library in your C# project.
3939
To use the library in your C# application, instantiate the `AesEncryption` or `AesDecryption` class and call the provided methods. Here's a simple example:
4040

4141
```csharp
42-
using SafeCrypt.AESDecryption;
43-
using SafeCrypt.AESEncryption;
42+
using SafeCrypt.AES;
4443
using SafeCrypt.Models;
4544

4645
class Program
@@ -61,7 +60,7 @@ class Program
6160

6261
};
6362

64-
var data = await AesDecryption.DecryptFromBase64StringAsync(parameterToDecrypt)
63+
var data = await Aes.DecryptFromBase64StringAsync(parameterToDecrypt)
6564

6665
Console.WriteLine($"Decrypted Data: {data.DecryptedData}");
6766
Console.WriteLine($"Initialization Vector: {data.Iv}");
@@ -71,8 +70,7 @@ class Program
7170

7271
-------------------------------------------------------------------------------------------------------
7372

74-
using SafeCrypt.AESDecryption;
75-
using SafeCrypt.AESEncryption;
73+
using SafeCrypt.AES;
7674
using SafeCrypt.Models;
7775

7876
class Program
@@ -92,7 +90,7 @@ class Program
9290
};
9391

9492

95-
var response = await AesEncryption.EncryptToBase64StringAsync(encryptionParam.DataToEncrypt, secret);
93+
var response = await Aes.EncryptToBase64StringAsync(encryptionParam.DataToEncrypt, secret);
9694

9795
Console.WriteLine(response.EncryptedData);
9896
Console.WriteLine(response.Iv);

0 commit comments

Comments
 (0)