Package yawPyCrypto :: Module _CipherStream :: Class CipherStream
[show private | hide private]
[frames | no frames]

Class CipherStream

     object --+    
              |    
AlgoDefinitions --+
                  |
                 CipherStream

Known Subclasses:
EncryptStream, DecryptStream

Class that implements the standard cipher stream. It offers functionality to start the stream by creating the appropriate cipher and hash algorithm. This class should never be instantiated directly.
Method Summary
  __init__(self)
Initialize a cipher stream.
a new object with type S, a subtype of T __new__(S, ...)
  _CipherStream__getPass(self)
Retrieve the password this stream uses.
  _start(self, cipher_algo, cipher_mode, IV, password, hash_algo)
Start the encryption stream with the passed in parameters, and create the crypto objects needed for the stream.

Class Variable Summary
property password
str _IVinit

Method Details

__init__(self)
(Constructor)

Initialize a cipher stream. This just sets the started attribute, which signals that the stream has been started, to false. The encryption stream is started when you call _start().

__new__(S, ...)

Returns:
a new object with type S, a subtype of T

_CipherStream__getPass(self)

Retrieve the password this stream uses. This method is only useful after start has been called, which either sets the passed in password to be available on the object, or creates a session password. This session password can be retrieved using this property.

_start(self, cipher_algo=None, cipher_mode=None, IV=None, password=None, hash_algo=None)

Start the encryption stream with the passed in parameters, and create the crypto objects needed for the stream.

Class Variable Details

password

Type:
property
Value:
<property object at 0x402327d4>                                        

_IVinit

Type:
str
Value:
'0123456789abcdefghijklmnopqrstuvwxyz'                                 

Generated by Epydoc 1.1 on Sun Aug 17 03:32:34 2003 http://epydoc.sf.net