Posted 10 August 2017 - 07:24 PM
I was pretty bored and as this community is slowly dying I don't have the motivation to update cLinux…
So while I was watching videos on how encrypting messages works I figured it would be a fun idea to remake my encrypted chat program for CC.
Soo this one uses the Diffie-Hellman-Merkle key exchange and the AES Encryption API by SquidDev to encrypt and send messages.
It has to establish a connection first though, because that's how the key exchange works for me.
(In case you were wondering, I used X^(Y%P) as the formula to calculate the encryption key (well that's the formula I took from a video about encryption lol) where Y and P is a set value I random typed (it is supposed to be known by everyone) and X is generated on runtime (it is a value between 1 and 10^13). X doesn't get exchanged but is later used to generate the actual encryption key…)
Here's the link to the pastebin:
Click
Btw there might be bugs with the UI and there's no checking if the connection to the other user is lost other then printing "**exited**" when the other user enters the /exit command…
So while I was watching videos on how encrypting messages works I figured it would be a fun idea to remake my encrypted chat program for CC.
Soo this one uses the Diffie-Hellman-Merkle key exchange and the AES Encryption API by SquidDev to encrypt and send messages.
It has to establish a connection first though, because that's how the key exchange works for me.
(In case you were wondering, I used X^(Y%P) as the formula to calculate the encryption key (well that's the formula I took from a video about encryption lol) where Y and P is a set value I random typed (it is supposed to be known by everyone) and X is generated on runtime (it is a value between 1 and 10^13). X doesn't get exchanged but is later used to generate the actual encryption key…)
Here's the link to the pastebin:
Click
Btw there might be bugs with the UI and there's no checking if the connection to the other user is lost other then printing "**exited**" when the other user enters the /exit command…