diff --git a/CryptoNet.Cli/ExampleAes.cs b/CryptoNet.Cli/ExampleAes.cs index 55d93be..e5e3d0b 100644 --- a/CryptoNet.Cli/ExampleAes.cs +++ b/CryptoNet.Cli/ExampleAes.cs @@ -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(); diff --git a/CryptoNet.Cli/Program.cs b/CryptoNet.Cli/Program.cs index d3d4c43..c0bd6d3 100644 --- a/CryptoNet.Cli/Program.cs +++ b/CryptoNet.Cli/Program.cs @@ -5,22 +5,23 @@ // 17-12-2021 12:18:44 // part of CryptoNet project +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();