A set of tools for pen-and-paper ciphers

Jason K. MacDuffie ad0a746052 fix bug where three args could pass including a file name hace 4 años
.gitignore f2ba8aa820 start work on the graphical application hace 8 años
LICENSE ff2f354216 I have completely restarted this project. All of the code is new, although I used the old code as reference. hace 8 años
Makefile d8709e8b27 add uninstall to makefile hace 8 años
README.md b50edf61c9 add info about the command line program in README hace 4 años
autokey.scm b792d16882 Convert into an R7RS library hace 8 años
caesar.scm b792d16882 Convert into an R7RS library hace 8 años
cipher-ops.scm b168bb5f60 Make print-letters return a string instead of printing hace 8 años
cipher.sld b168bb5f60 Make print-letters return a string instead of printing hace 8 años
ciphermytext-cli.scm ad0a746052 fix bug where three args could pass including a file name hace 4 años
cmt.scm 247f6c1118 continue adding widgets to cmt hace 8 años
cryptogram-game.scm 61c8a0e4b5 fix check alpha issues hace 4 años
lib-only-install.sh 3316872b01 rename automytext to ciphermytext hace 4 años
monokey.scm 666f4f7b4e allow monokey with a shorter key hace 4 años
queue.body.scm 08d5136cab start organizing project with makefile in preparation of javafx hace 8 años
queue.sld ab46e8bdd8 start a migration to chicken scheme hace 8 años
reptkey.scm b792d16882 Convert into an R7RS library hace 8 años

README.md

CipherMyText

CipherMyText is a set of tools for enciphering messages. Previously the tools were written in Python and only worked with the autokey cipher, but the tools have been ported to Scheme and are designed in a more modular way to allow them to be used with a wide array of mono- and polyalphabetic pen-and-paper ciphers.

Dependencies

Although the GUI application requires Chicken and libui, the suite itself is written in portable R7RS Scheme and comes with a CLI implementation as well. View your implementation documentation for details about installing R7RS libraries.

Usage

Examples of the R7RS library usage:

> (import (macduffie cipher))
> (apply-cipher caesar-encipher #t "Hello, world!" 1)
< "Ifmmp, xpsme!"
> (apply-cipher caesar-decipher #t "Ifmmp, xpsme!" 1)
< "Hello, world!"
> (apply-cipher mono-encipher #t "The pen is mightier than the sword." "DONUTABCEFGHIJKLMPQRSVWXYZ")
< "Rct ltj eq iebcretp rcdj rct qwkpu."
> (apply-cipher mono-decipher #t "Rct ltj eq iebcretp rcdj rct qwkpu." "DONUTABCEFGHIJKLMPQRSVWXYZ")
< "The pen is mightier than the sword."

CLI implementation:

$ ciphermytext -p autokey 'This is an example of a sentence I woud like to encipher.' TRASH
Myik pl hv wfsmcpb or p dibyefgr B abwh teyy wz mxgbdlrt.
$ ciphermytext -p -d autokey 'Myik pl hv wfsmcpb or p dibyefgr B abwh teyy wz mxgbdlrt.' TRASH
This is an example of a sentence I woud like to encipher.

Notice

These ciphers are generally not appropriate for real world strong cryptography. There are well known techniques for breaking most pen-and-paper ciphers, except the one-time-pad and stream ciphers. User beware: this software should be used as a toy and nothing more.

License

Code is licensed under GPLv3 or later. See LICENSE for details.