Package Crypto :: Package Util :: Module RFC1751
[frames] | no frames]

Module RFC1751

Functions
 
key_to_english(key)
key_to_english(key:string(2.x)/bytes(3.x)) : string Transform an arbitrary key into a string containing English words. The key length must be a multiple of 8.
 
english_to_key(s)
english_to_key(string):string(2.x)/bytes(2.x) Transform a string into a corresponding key. The string must contain words separated by whitespace; the number of words must be a multiple of 6.
Variables
  __revision__ = '$Id$'
  binary = {0: '0000', 1: '0001', 2: '0010', 3: '0011', 4: '0100...
  wordlist = ['A', 'ABE', 'ACE', 'ACT', 'AD', 'ADA', 'ADD', 'AGO...
  __package__ = 'Crypto.Util'
Variables Details

binary

Value:
{0: '0000',
 1: '0001',
 2: '0010',
 3: '0011',
 4: '0100',
 5: '0101',
 6: '0110',
 7: '0111',
...

wordlist

Value:
['A',
 'ABE',
 'ACE',
 'ACT',
 'AD',
 'ADA',
 'ADD',
 'AGO',
...