-
Notifications
You must be signed in to change notification settings - Fork 8
Description
:)
Would like to use someting like a SHA-256 as passkey basically. Would also be nice if one could create readonly servers.
One way I could see this be implemented is using an encryption algorithm with the passkey as encryptionkey and then simply using that for every single packet that you send both from the client and server. This way, if a client tries to connect using an incorrect password - it will decrypt the encrypted data to some gibberish which you can then just throw away and ignore. The "password"/encryption key itself would then also not have to be sent over the internet or since it is known beforehand (as provided via cmd line arguments or some locally read file) - while also avoiding the need to setup something complex like SSL and managing certificates. If you do decide to implement it this way, it may be worth looking into compressing the data as well while you're working on relevant code.