Closed Sim0xx001 closed 1 year ago
Couple things:
self
that couldn't be done by cipher.In fact, I think that the system should be modified as follows:
Identity
class (former Cipher
) should be able storing both public and private keys. It should also provide the two methods to cipher and decipher, maybe returning error values if we try to decode using an Identity
which is associated with only the public key. It should be the only class directly used in both server and client code.E2EE
class should be a static class that provides utility functions to be only used under-the-hood by the Identity
class, such as loading/storing keys from disk/bytes.As for the Message.py
, me and Bruno are working on a simpler protocol with only two classes, Packet
and PacketItem
. Just remove all the message classes and leave the send/receive methods. You may consider moving the two functions to the new E2EE.py
, so that you can delete the message.py
file altogheter.
If these things above-mentioned are done, I think we will be ready for merge.
All done!
Reopening your pull request... :)
Merging.
I've implemented a few methods in e2ee.py for keys load from bytes strings and encrypting/decrypting messages.