tryToxic
 All Classes Functions
cryptClass.cm Class Reference

Public Member Functions

def __init__
 
def setKey
 
def encrypt
 
def decrypt
 

Public Attributes

 key
 
 mod
 
 name
 
 rand
 

Detailed Description

Crypto-Meta-Class, should be able to do any symetric encryption and decryption for any text-data.

Definition at line 6 of file cryptClass.py.

Constructor & Destructor Documentation

def cryptClass.cm.__init__ (   self,
  pyCryptoModule,
  key = "" 
)
Keywords:
pyCryptoModule -- get a valid cryptoModule by scm.getMod
key -- is the passPhrase or also password

Definition at line 10 of file cryptClass.py.

Member Function Documentation

def cryptClass.cm.decrypt (   self,
  encryptedMessage 
)
Decrypt encrypted text.
return clearText

Definition at line 79 of file cryptClass.py.

def cryptClass.cm.encrypt (   self,
  rawMessage 
)
Encrypt plaintext.
return encryptedMessage

Definition at line 51 of file cryptClass.py.

def cryptClass.cm.setKey (   self,
  key 
)
self.setKey does hash the password and shortens the hash to max of algorithm's key-block_size.
return new Key

Definition at line 28 of file cryptClass.py.


The documentation for this class was generated from the following file: