|
pygame is
pygame.org is
|
SolitaireCryptoDemo
SolitaireCryptoDemo - 1.1John Eriksson (wmjoers)Tags:Description
A visual demonstration of the steps involved in generating a keystream using Bruce Schneier's Solitaire encryption algorithm.
Featuring smooth animations and descriptions of all steps.
Type "python SolitaireCryptoDemo.py" to start the demo.
You can also use several commandline options:
- -r - Setup a shuffled deck.
- -u - Setup an unkeyed deck.
- -k KEY - Setup a keyed deck using the algorithm described at http://www.schneier.com/solitaire.html.
- -o - Print found keys to standard out.
- -h - Display this text.
Examples:
- python SolitaireCryptoDemo.py
starts the demo with a default deck (keyed with "CRYPTONOMICON").
- python SolitaireCryptoDemo.py -r
starts the demo with a shuffled deck.
- python SolitaireCryptoDemo.py -u -o
starts the demo with an unkeyed deck and prints the keys.
- python SolitaireCryptoDemo.py -k MYSECRETKEY
starts the demo with a keyd deck using the passphrase"MYSECRETKEY".
Changes
- Fixed a serious bug in the key finding part of the algorithm. (Thanks to Thomas Knappe for pointing this out!)
- Fixed some other bugs that I found when tracking down the first one.
- Changed the key output to show the actual key value instead of the modulus 26 value. To be more compliant to the algorithm description.
LinksScreenshot click to view original size
Releases
Pygame.org account CommentsIf you wish to leave a comment with your pygame.org account, please sign in first.
|
| spotlight |
|
|
|
| our projects |
|
pygame.org welcomes all python game, art, music, sound, video and multimedia projects. If they use pygame or not.
|
|
|
| recent releases |
|
May 24, 2012
May 23, 2012
May 22, 2012
May 20, 2012
May 19, 2012
May 18, 2012
May 17, 2012
... more!
|
|