ez_message module

Inheritance diagram of ez_message

class ez_message.Message(sender='', recipient='', content='', dtime=None, _dict=None)[source]

Bases: object

This is the object that will be permanently saved in the database. It generates a unique ID based on sender, recipient and exact datetime. Unencrypted is recipient, year-month, injection vector and crypt_mode. Crypted is the message as cipher(AES) and key as ciphered_key(RSA).

clear_text()[source]

Return the decrypted text, given the private key is found on disk

components = ['time', 'recipient', 'UID', 'cipher', 'ciphered_key', 'iv', 'crypt_mode', 'ciphered_mac']
crypto_content = ['cipher', 'ciphered_key', 'iv', 'crypt_mode', 'ciphered_mac']
class ez_message.MessageDatabase(**kwargs)[source]

Bases: ez_database.Database

The MessageDatabase class gives access to the saved, encrypted messages in the SQL database