tiny fix and added README.md

This commit is contained in:
Johannes Loher 2016-02-16 19:56:32 +01:00
parent f497922618
commit 9b9e023e61
2 changed files with 27 additions and 1 deletions

26
README.md Normal file
View File

@ -0,0 +1,26 @@
# Learncrypt
A small application to learn programming crypto.
## About
This project is about experimenting with and learning about encryption and also getting more experienced with the [D programming language](http://dlang.org/).
## Option reference
Usage: ./learncrypt [options]
Common options:
-h --help This help information.
Global options:
-a --armor use ascii-armored I/O.
Actions:
-g --gen-key Generate a new 256 bit key.
-e --encrypt Encrypt a message.
-d --decrypt Decrypt a message.
Action options:
-c --cipher The cipher to use (default: chacha20).
-k --key The file which contains the key (default: symkey.asc).

View File

@ -74,7 +74,7 @@ int main(string[] args)
void printHelp(Option[] options)
{
defaultGetoptPrinter("Usage: learncrypt [options]\n\nCommon options:",
defaultGetoptPrinter("Usage: ./learncrypt [options]\n\nCommon options:",
options[$-1..$]);
defaultGetoptPrinter("\nGlobal options:",
options[$-2..$-1]);