tiny fix and added README.md
This commit is contained in:
parent
f497922618
commit
9b9e023e61
2 changed files with 27 additions and 1 deletions
26
README.md
Normal file
26
README.md
Normal 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).
|
|
@ -74,7 +74,7 @@ int main(string[] args)
|
||||||
|
|
||||||
void printHelp(Option[] options)
|
void printHelp(Option[] options)
|
||||||
{
|
{
|
||||||
defaultGetoptPrinter("Usage: learncrypt [options]\n\nCommon options:",
|
defaultGetoptPrinter("Usage: ./learncrypt [options]\n\nCommon options:",
|
||||||
options[$-1..$]);
|
options[$-1..$]);
|
||||||
defaultGetoptPrinter("\nGlobal options:",
|
defaultGetoptPrinter("\nGlobal options:",
|
||||||
options[$-2..$-1]);
|
options[$-2..$-1]);
|
||||||
|
|
Loading…
Reference in a new issue