Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ public sealed class RsaEncryptionParameters : IEncryptionData
public sealed class RsaDecryptionParameters
{
/// <summary>
/// Gets or sets the public key for RSA encryption.
/// Gets or sets the private key for RSA encryption.
/// </summary>
[Required]
public string PrivateKey { get; set; }
Expand Down
5 changes: 5 additions & 0 deletions src/SafeCrypt.Test/Usage/AesUsage.cs
Original file line number Diff line number Diff line change
Expand Up @@ -31,13 +31,16 @@ internal static async Task Execute()
// List errors here
}

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

Console.WriteLine();
Console.WriteLine();

Console.WriteLine($"Data to Decrypt: {encryptionResult.EncryptedData}");

Console.WriteLine($"AES Hex Decryption Started");
// Perform decryption using the same IV and secret
var decryptionResult = await Aes.DecryptFromHexStringAsync(new DecryptionParameters
Expand Down Expand Up @@ -67,6 +70,8 @@ internal static async Task Execute()
Console.WriteLine($"AES Base64 Encryption Started");
Console.WriteLine();
Console.WriteLine();
Console.WriteLine($"Data to Encrypt {dataToEncrypt}");
Console.WriteLine();

var encryptedResult = await Aes.EncryptToBase64StringAsync(base64dataToEncrypt);

Expand Down