CHEM :: Common :: Util :: Codec :: Class Codec
[hide private]
[frames] | no frames]

Class Codec



Throwaway class to "encrypt" and "decrypt" strings since the rotor module got deprecated after Python 2.3. Dumb simple now (just reverses the string), but not very important anyway.

Instance Methods [hide private]
 
__init__(self, key)
Constructor.
 
encrypt(self, source)
 
decrypt(self, source)
Method Details [hide private]

__init__(self, key)
(Constructor)

 
Constructor. Caller specifies the encryption key, although this is presently ignored.