Skip to content

Latest commit

 

History

History
43 lines (32 loc) · 693 Bytes

README.md

File metadata and controls

43 lines (32 loc) · 693 Bytes

fjk cipher

Command line:

$ sudo apt-get install python-dev # in case you want to build the python extension
$ make

$ ./fjk -h
Usage: ./fjk [-d] [-i infile] [-o outfile] [-h]
        -d:      decrypt
        -i FILE: input file or STDIN
        -o FILE: output file or STDOUT
        -h:      display this help and exit

$ echo "Hello world" | ./fjk
roHl edwl
ol

$ echo "Hello world" | ./fjk | ./fjk -d
Hello world

Python:

import fjk

print fjk.encrypt('Hello, world!')
print fjk.decrypt('!ooHr,el ldwl')

Contributing

  1. fork
  2. edit
  3. make test && pull request

Cool stuff