Package moul :: Package crypt :: Module elf
[hide private]
[frames] | no frames]

Module elf



ELF decryption for MOUL

Based on the C++ code from Marack

Functions [hide private]
  list2int(lst)
  list2str(lst)
  decryptElf(fin)
Decrypt an encrypted log file (MOUL elf file)
  encryptElf(instr, fout)
Encrypt an encrypted log file (MOUL elf file)
  decipher(crypt, size, key)
decipher for ELF (encrypted log files)
  encipher(uncrypt, key)
Encipher for ELF (encrypted log files)

Variables [hide private]
  __author__ = 'Christian Heimes'
  __version__ = '$Id: elf.py 122 2007-02-02 17:34:06Z tiran $'
  __revision__ = '$Revision: 122 $'

Function Details [hide private]

list2int(lst)

 
None

list2str(lst)

 
None

decryptElf(fin)

 

Decrypt an encrypted log file (MOUL elf file)

fin - log file opened in binary mode result - list of unencrypted lines

encryptElf(instr, fout)

 

Encrypt an encrypted log file (MOUL elf file)

instr - input as string fout - log file to write (binary mode)

decipher(crypt, size, key)

 

decipher for ELF (encrypted log files)

This is a 1:1 translation of the C code. It's highly unpythonic but h... it works :p

TODO: clean up and pythonic implementation

encipher(uncrypt, key)

 

Encipher for ELF (encrypted log files)

TODO: clean up and pythonic implementation

Variables Details [hide private]

__author__

None
Value:
'Christian Heimes'                                                     
      

__version__

None
Value:
'$Id: elf.py 122 2007-02-02 17:34:06Z tiran $'                         
      

__revision__

None
Value:
'$Revision: 122 $'