Skip to content

Commit

Permalink
#50 minor text improvement
Browse files Browse the repository at this point in the history
  • Loading branch information
maythamfahmi committed May 4, 2024
1 parent bca5b30 commit e3f9e03
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 6 deletions.
2 changes: 1 addition & 1 deletion CryptoNet.Cli/ExampleAes.cs
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ public static void Example_4_Encrypt_Decrypt_Content_With_Human_Readable_Key_Sec
Debug.Assert(ConfidentialDummyData == decrypt);
}

public static void Example_5_Encrypt_And_Decrypt_PdfFile_With_SymmetricKey_Test(string filename)
public static void Example_5_Encrypt_And_Decrypt_File_With_SymmetricKey_Test(string filename)
{
ICryptoNet cryptoNet = new CryptoNetAes();
var key = cryptoNet.ExportKey();
Expand Down
11 changes: 6 additions & 5 deletions CryptoNet.Cli/Program.cs
Original file line number Diff line number Diff line change
Expand Up @@ -5,22 +5,23 @@
// <date>17-12-2021 12:18:44</date>
// <summary>part of CryptoNet project</summary>

using static System.Runtime.InteropServices.JavaScript.JSType;

namespace CryptoNet.Cli;

internal class Program
{
protected Program() { }

public static void Main()
{
ExampleAes.Example_1_Encrypt_Decrypt_Content_With_SelfGenerated_SymmetricKey();
ExampleAes.Example_2_SelfGenerated_And_Save_SymmetricKey();
ExampleAes.Example_3_Encrypt_Decrypt_Content_With_Own_SymmetricKey();
ExampleAes.Example_4_Encrypt_Decrypt_Content_With_Human_Readable_Key_Secret_SymmetricKey();
ExampleAes.Example_5_Encrypt_And_Decrypt_PdfFile_With_SymmetricKey_Test("TestFiles\\test.docx");
ExampleAes.Example_5_Encrypt_And_Decrypt_PdfFile_With_SymmetricKey_Test("TestFiles\\test.xlsx");
ExampleAes.Example_5_Encrypt_And_Decrypt_PdfFile_With_SymmetricKey_Test("TestFiles\\test.pdf");
ExampleAes.Example_5_Encrypt_And_Decrypt_PdfFile_With_SymmetricKey_Test("TestFiles\\test.png");
ExampleAes.Example_5_Encrypt_And_Decrypt_File_With_SymmetricKey_Test("TestFiles\\test.docx");
ExampleAes.Example_5_Encrypt_And_Decrypt_File_With_SymmetricKey_Test("TestFiles\\test.xlsx");
ExampleAes.Example_5_Encrypt_And_Decrypt_File_With_SymmetricKey_Test("TestFiles\\test.pdf");
ExampleAes.Example_5_Encrypt_And_Decrypt_File_With_SymmetricKey_Test("TestFiles\\test.png");

ExampleRsa.Example_1_Encrypt_Decrypt_Content_With_SelfGenerated_AsymmetricKey();
ExampleRsa.Example_2_SelfGenerated_And_Save_AsymmetricKey();
Expand Down

0 comments on commit e3f9e03

Please sign in to comment.