format README, user friendly print
parent
9c8b9d1810
commit
0d89eaf7c8
|
@ -3,17 +3,19 @@ How to use aes-file-encrypt.c
|
||||||
1) Start by typing make
|
1) Start by typing make
|
||||||
2) Make a file to encode. Can be any file (ex. .txt .in .out .file etc.)
|
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:
|
3) run the excecutable, for help run with -h flag. Basic command is as follows:
|
||||||
|
|
||||||
./aes-file-encrypt <-option> <KeySize> <input.file> <output.file>
|
./aes-file-encrypt <-option> <KeySize> <input.file> <output.file>
|
||||||
|
|
||||||
|
KeySize examples: 128, 192, 256
|
||||||
|
|
||||||
typing -e for option will encrypt the input.file onto the output.file.
|
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.
|
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.
|
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
|
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"
|
key is entered into the command line, it will use "0123456789abcdef"
|
||||||
by default.
|
by default.
|
||||||
|
|
||||||
4) Running 'make clean' will delete the excecutable as well as any created
|
4) Running 'make clean' will delete the excecutable as well as any created
|
||||||
files. Making sure that the only files left are 'aes-file-encrypt.c',
|
files. Making sure that the only files left are 'aes-file-encrypt.c',
|
||||||
'Makefile', and 'README'.
|
'Makefile', and 'README'.
|
||||||
|
|
|
@ -251,7 +251,7 @@ int NoEcho(char* key, int size)
|
||||||
return -1060;
|
return -1060;
|
||||||
}
|
}
|
||||||
|
|
||||||
printf("Key: ");
|
printf("Unique Password: ");
|
||||||
fgets(key, size, stdin);
|
fgets(key, size, stdin);
|
||||||
key[strlen(key) - 1] = 0;
|
key[strlen(key) - 1] = 0;
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue