gronsfeld (20 March 2001)
index
../gronsfeld.py

gronsfeld.py - the gronsfeld classical cipher for python.
 
Requires cipher.py by Tesla Coil <tescoil@irtc.net>
and (currently) ecipher.py by me.
 
This is the _numeric_ running-key gronsfeld.

 
Modules
            
cipher
ecipher
string

 
Functions
            
genc(type, dir, key, plaintext)
Driver for encryption/decryption
gron(type, dir, key, plaintext)
Encryption/Decryption:
 
make bigrams of the key and text. For encryption count
forward in the plaintext forward by keynumber, for
decryption, count backwards.
 
Returns a list of ciphertext.

 
Data
             __author__ = 'Sean Dwyer <ewe2@can.org.au>'
__credits = 'cipher.py by Tesla Coil <tescoil@irtc.net>'
__date__ = '20 March 2001'
__file__ = './gronsfeld.py'
__name__ = 'gronsfeld'
__version = '$Revision: 1.5 $'

 
Author
             Sean Dwyer <ewe2@can.org.au>