https://github.com/kanaka/chaocipher
Chaocipher: Javascript and Python versions
https://github.com/kanaka/chaocipher
Last synced: about 2 months ago
JSON representation
Chaocipher: Javascript and Python versions
- Host: GitHub
- URL: https://github.com/kanaka/chaocipher
- Owner: kanaka
- License: other
- Created: 2010-07-07T20:56:50.000Z (almost 15 years ago)
- Default Branch: master
- Last Pushed: 2010-07-07T21:07:45.000Z (almost 15 years ago)
- Last Synced: 2025-03-25T14:51:18.694Z (3 months ago)
- Language: Python
- Homepage:
- Size: 113 KB
- Stars: 7
- Watchers: 3
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE.GPL-3
Awesome Lists containing this project
README
## Chaocipher: Javascript and Python versions
### Description
[Chaocipher](http://en.wikipedia.org/wiki/Chaocipher) is a method of
encryption invented by John F. Byrne in 1918 that was never publicly
solved.The algorithm was published in May 2010. These implementations are
based on a
[paper](http://www.mountainvistasoft.com/chaocipher/ActualChaocipher/Chaocipher-Revealed-Algorithm.pdf)
by Moshe Rubin.### Usage
#### Javascript:
Load the chao.html in a browser. Enter the left and right alphabets.
Enter either the plaintext or the ciphertext and click "Encrypt" or
"Decrypt" respectively.#### Python:
The python program `chao.py` reads the plaintext or ciphertext from
standard input and writes the result to stdout. The left and right
alphabets are set using the `--left` and `--right` arguments
respectively. The `--encrypt` and `--decrypt` arguments specify the
mode.An example of encrypting a file:
cat myfile | ./chao.py --encrypt --left HXUCZVAMDSLKPEFJRIGTWOBNYQ --right PTLNBQDEOYSFAVZKGJRIHWXUMCAn example of decrypting text entered from the terminal:
./chao.py --decrypt --left HXUCZVAMDSLKPEFJRIGTWOBNYQ --right PTLNBQDEOYSFAVZKGJRIHWXUMC