commit 4ab1e52da96fb4e95b14d301e62786b4c6577fed
parent 995e498b21fae83d6f80c658024d08ee0ed7387a
Author: Minerva_juppiter <94231606+minerva-jupiter@users.noreply.github.com>
Date: Thu, 21 Jul 2022 11:52:16 +0900
Diffstat:
2 files changed, 19 insertions(+), 0 deletions(-)
diff --git a/Encrypt.cs b/Encrypt.cs
@@ -38,6 +38,12 @@ namespace Cypher
Question question = new Question();
whereEncryptedFilefolder = question.Questions("Where will you create encrypted file? (folder Name)", false);
+ while (Directory.Exists(whereEncryptedFilefolder)==false)
+ {
+ Console.WriteLine("You selected not exis folder.");
+ Console.WriteLine("Let's try another folder!");
+ whereEncryptedFilefolder = question.Questions("Where will you create encrypted file? (folder Name)", false);
+ }
whereEncryptedfileName = question.Questions("What will you create encrypted file name?",false);
whereEncryptedFile = whereEncryptedFilefolder + whereEncryptedfileName + ".cypher";
whereDateFile = question.Questions("Where is the file you want to encrypt?", true);
diff --git a/README.md b/README.md
@@ -9,10 +9,23 @@ We'll improve this program more.
We hope it will be one of the Post-Quantum Cryptography.
・tipe "createKey" to create keyFile for Cryptography.
+ How to Answer "Where will you want to create the keyFile?"
+ →You have to answer the file name with fullPath. (ex,C:\Users\minerva\Documant\date.txt)
+
・tipe "encrypt" to encrypt the date file you want with created keyFile.
+ How to Answer "Where will you create encrypted file? (folder Name)"
+ →You have to answer the folder path.(ex.If you want to create encrypted file "C:\Users\minerva\Document\encrypted.cypher",type "C:\Users\minerva\document")
+ you can't select extension,encrypted file's path has .cypher extension.
+ And you have to remember the file of extension. This is becouse when you sort use this.
・tipe "sort" to sort the encrypted file with keyFile.
+ how to Answer "Where will you create sorted file?"
+ →You have to answer the folder fullPath with encrypted file's extension.
+ ex.If you encrypted C:\Users\minerva\Document\data.txt, you have to type "anywhere you want + filename you want + .txt"
+
+*****warning*****
+You have to answer 'fullPath' apart from encrypted file's folderName.
Open file and try more!