playfair (version 1.2, 13 March 2001)
index
../playfair.py

playfair.py - playfair for python.
 
Requires ecipher.py (me) and cipher.py <tescoil@irtc.net>
 
This playfair does not encrypt doubles, which was good enough for the
WWII Australian coast-watchers who rescued JFK using it for
communication.

 
Modules
            
cipher
ecipher
string

 
Functions
            
encipher(dir, kcolist, key, digrams)
Look up a letter-pair, return its coordinate and encipher
according to the rules. allows us to handle doubles. If you
don't like unenciphered doubles, you'll have to alter this,
or insert where appropriate in previous functions. This is
a symmetric function.
playdec(key, plaintext)
Decipherment driver for playfair
playenc(key, plaintext)
Encipherment driver for playfair

 
Data
             __author__ = 'Sean Dwyer <ewe2@can.org.au>'
__credits__ = 'cipher.py by Tesla Coil <tescoil@irtc.net>.\012 ...ows an algorithm by Paul Leyland <pcl@ox.ac.uk>.\012'
__date__ = '13 March 2001'
__file__ = './playfair.py'
__name__ = 'playfair'
__version__ = '$Revision: 1.3 $'

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

 
Credits
             cipher.py by Tesla Coil <tescoil@irtc.net>.
                 Borrows an algorithm by Paul Leyland <pcl@ox.ac.uk>.