Table of Contents

Class: BFCipher src/conf.py

A class that implements a Blowfish cipher. The results are base64 encoded for easy writing to ASCII configuration files

Methods   
__depad_file
__init__
__pad_file
decrypt
encrypt
  __depad_file 
__depad_file ( self,  file_buffer )

Depad the file_buffer

  __init__ 
__init__ ( self,  pword )

Initialize a BFCipher with password pword.

  __pad_file 
__pad_file ( self,  file_buffer )

Blowfish cipher needs 8 byte blocks to work with, so we pad file_buffer to an even multiple of 8 bytes.

  decrypt 
decrypt ( self,  file_buffer )

Base64 decode and decrypt the ciphertext contained in file_buffer

  encrypt 
encrypt ( self,  file_buffer )

Encrypt a file_buffer containing the plaintext and Base64 encode it.


Table of Contents

This document was automatically generated on Sun Feb 3 17:55:12 2008 by HappyDoc version 2.1