Skip to content

Commit 7e73a80

Browse files
committed
doc: update readme doc
1 parent 83ff1ca commit 7e73a80

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

README.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ class Program
4949
{
5050
var aesEncryptor = new AesEncryption();
5151

52-
var encryptedData = aesEncryptor.EncryptToBase64String("Hello, World!", "gdjdtsraewsuteastwerse=="
52+
var encryptedData = await aesEncryptor.EncryptToBase64StringAsync("Hello, World!", "gdjdtsraewsuteastwerse=="
5353

5454
Console.WriteLine($"Encrypted Data: {encryptedData.EncryptedData}");
5555
Console.WriteLine($"Initialization Vector: {encryptedData.Iv}");
@@ -64,7 +64,7 @@ class Program
6464

6565
};
6666

67-
var data = await aesDecryptor.DecryptFromBase64String(parameterToDecrypt)
67+
var data = await aesDecryptor.DecryptFromBase64StringAsync(parameterToDecrypt)
6868

6969
Console.WriteLine($"Decrypted Data: {data.DecryptedData}");
7070
Console.WriteLine($"Initialization Vector: {data.Iv}");
@@ -96,7 +96,7 @@ class Program
9696

9797
var encryptor = new AesEncryption();
9898

99-
var response = await encryptor.EncryptToBase64String(encryptionParam.DataToEncrypt, secret);
99+
var response = await encryptor.EncryptToBase64StringAsync(encryptionParam.DataToEncrypt, secret);
100100

101101
Console.WriteLine(response.EncryptedData);
102102
Console.WriteLine(response.Iv);
@@ -113,7 +113,7 @@ class Program
113113

114114

115115
var decryptor = new AesDecryption();
116-
var decryptionData = await decryptor.DecryptFromBase64String(decryptorParam);
116+
var decryptionData = await decryptor.DecryptFromBase64StringAsync(decryptorParam);
117117

118118
Console.WriteLine(decryptionData.DecryptedData);
119119
Console.WriteLine(decryptionData.Iv);

0 commit comments

Comments
 (0)