ez_message module¶
- 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).
- 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