Skip to content

devsli/fjk

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

82 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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