Session Functions
wow this made it complete on a function definition level, like i just have to make some wrappers around it
so, i made 3 functions for the Session struct
-
Send()-> takes plaintext, encrypts it with the session key and nonce from session, sends it -
Receive()-> decodesMsgDatapacket, decrypts using session key and nonce received FROM the packet (so nonces dont go out of sync) and returns plaintext -
Close()-> what do you think lmao
in the screenshot you can see the plaintext and ciphertext being logged, thats an exchange between client and server!
Comments 0
No comments yet. Be the first!
Sign in to join the conversation.