Package diffpy :: Package pdfgui :: Package gui :: Module simplecipher
[hide private]
[frames] | no frames]

Module simplecipher

source code

This module defines the cipher and decipher methods that encode and decode a
string. This module and these methods are not secure. Ciphered passwords should
be stored with the tightest (paranoid) permissions.



Functions [hide private]
 
cipher(string)
Apply a simple replacement cipher to a string.
source code
 
decipher(string)
Apply a simple replacement cipher to a ciphered string to get the original back.
source code
Variables [hide private]
  __id__ = '$Id: simplecipher.py 2980 2009-04-02 00:14:33Z juhas $'
Function Details [hide private]

cipher(string)

source code 
Apply a simple replacement cipher to a string.

This adds a small amount of security when storing passwords.