|
tryToxic
|
Public Member Functions | |
| def | __init__ |
| def | setKey |
| def | encrypt |
| def | decrypt |
Public Attributes | |
| key | |
| mod | |
| name | |
| rand | |
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.
| 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.
| 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.