No-Chat-Reports icon indicating copy to clipboard operation
No-Chat-Reports copied to clipboard

Asymmetric encryption for chat messages

Open huantianad opened this issue 1 year ago • 7 comments

Idea

Allow the option to use asymmetric encryption for chat messages. Each player will have their own public private key pair, where the public key is shared to all other members of the server. Each player configures a list of public keys, corresponding to each other player who should be able to read messages that this player sends.

Reasoning

One benefit of this approach is that it allows each individual to set their "own" key, which can be used among multiple groups and multiple servers. Two servers may have different groups of people on it, and thus different key configurations. With an asymmetric approach, you can communicate the same public key to all members of all servers.

This technically could also be automated, where each client broadcasts its public key to all other modded clients, though this obviously does pose some risk.

Note: as the length of recipients increases, so does the length of the encrypted message. This perhaps makes this approach not viable for very large servers?

Other Information

No response

huantianad avatar Oct 22 '22 23:10 huantianad