From 9c8b9d18101612e4ea9db1ba00bd841e189b3d61 Mon Sep 17 00:00:00 2001 From: kaleb-himes Date: Sat, 27 Jun 2015 19:40:06 -0600 Subject: [PATCH] User friendly print and formatting --- crypto/3des/3des-file-encrypt.c | 2 +- crypto/3des/README | 12 +++++++----- 2 files changed, 8 insertions(+), 6 deletions(-) diff --git a/crypto/3des/3des-file-encrypt.c b/crypto/3des/3des-file-encrypt.c index a3971f47..bd42e3ce 100644 --- a/crypto/3des/3des-file-encrypt.c +++ b/crypto/3des/3des-file-encrypt.c @@ -252,7 +252,7 @@ int NoEcho(char* key, int size) return -1060; } - printf("Key: "); + printf("Unique Password: "); fgets(key, size, stdin); key[strlen(key) - 1] = 0; diff --git a/crypto/3des/README b/crypto/3des/README index e09ec46a..a34aa690 100644 --- a/crypto/3des/README +++ b/crypto/3des/README @@ -3,17 +3,19 @@ How to use 3des-file-encrypt.c 1) Start by typing make 2) Make a file to encode. Can be any file (ex. .txt .in .out .file etc.) 3) run the excecutable, for help run with -h flag. Basic command is as follows: - + ./3des-file-encrypt <-option> - + + KeySize examples: 56, 112, or 168 + typing -e for option will encrypt the input.file onto the output.file. typing -d for option will decrypt the input.file onto the output.file. - NOTE: When decrypting make sure the key is the same used for the + NOTE: When decrypting make sure the key is the same used for the encryption, otherwise it won't decode correctly. Which is the idea. Only those with the key will be able to decode the message. If no key is entered into the command line, it will use "0123456789abcdef" by default. -4) Running 'make clean' will delete the excecutable as well as any created - files. Making sure that the only files left are '3des-file-encrypt.c', +4) Running 'make clean' will delete the excecutable as well as any created + files. Making sure that the only files left are '3des-file-encrypt.c', 'Makefile', and 'README'.