Skip to content

Commit 19be408

Browse files
authored
Merge pull request #60 from selfmadecode/unit-tests
update RsaDecryptionParameters public key comment typo
2 parents b3e1f5c + 695859a commit 19be408

2 files changed

Lines changed: 6 additions & 1 deletion

File tree

src/SafeCrypt.Lib/Encryption/RsaEncryption/Models/Encrypt/RsaEncryptionParameters.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ public sealed class RsaEncryptionParameters : IEncryptionData
2020
public sealed class RsaDecryptionParameters
2121
{
2222
/// <summary>
23-
/// Gets or sets the public key for RSA encryption.
23+
/// Gets or sets the private key for RSA encryption.
2424
/// </summary>
2525
[Required]
2626
public string PrivateKey { get; set; }

src/SafeCrypt.Test/Usage/AesUsage.cs

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,13 +31,16 @@ internal static async Task Execute()
3131
// List errors here
3232
}
3333

34+
Console.WriteLine($"Data to Encrypt {dataToEncrypt}");
3435
Console.WriteLine($"Hex Encrypted data: {encryptionResult.EncryptedData}");
3536
Console.WriteLine($"IV key: {encryptionResult.Iv}");
3637
Console.WriteLine($"Secret key: {encryptionResult.SecretKey}");
3738

3839
Console.WriteLine();
3940
Console.WriteLine();
4041

42+
Console.WriteLine($"Data to Decrypt: {encryptionResult.EncryptedData}");
43+
4144
Console.WriteLine($"AES Hex Decryption Started");
4245
// Perform decryption using the same IV and secret
4346
var decryptionResult = await Aes.DecryptFromHexStringAsync(new DecryptionParameters
@@ -67,6 +70,8 @@ internal static async Task Execute()
6770
Console.WriteLine($"AES Base64 Encryption Started");
6871
Console.WriteLine();
6972
Console.WriteLine();
73+
Console.WriteLine($"Data to Encrypt {dataToEncrypt}");
74+
Console.WriteLine();
7075

7176
var encryptedResult = await Aes.EncryptToBase64StringAsync(base64dataToEncrypt);
7277

0 commit comments

Comments
 (0)