Commit Graph

4 Commits

Author SHA1 Message Date
Teknique 469aefb873 Encrypt messages between nodes
Both sides of the chat now generate secrets based on their private key
and the other side's public key. They encrypt each message with a nonce
before sending it, and use the nonce in the decryption.

This _does_ mean that the responder has to specify the starter's name
now so that they can select the proper public key for encryption.
2023-08-02 23:21:46 -07:00
Teknique 04354d79c9 Cleanups and prepping for encryption
This cleans up some types, moves some typing to loading and saving keys,
uses clearer object names, and passes a crypto system into chatter.

This lays the groundwork for adding encryption.
2023-08-02 21:20:01 -07:00
Teknique 11858a1f5c Added with_privacy changes 2023-08-02 12:28:52 -07:00
Teknique 92439fede9 Working cross-server chat 2023-08-02 12:28:05 -07:00