You are browsing as a guest. Sign up (or log in) to start making projects!

36m 51s logged

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

  1. Send() -> takes plaintext, encrypts it with the session key and nonce from session, sends it
  2. Receive() -> decodes MsgData packet, decrypts using session key and nonce received FROM the packet (so nonces dont go out of sync) and returns plaintext
  3. 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!

0
14

Comments 0

No comments yet. Be the first!