Advertisement
sci4me

Secure Server Login

Jun 5th, 2016
294
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.59 KB | None | 0 0
  1. 1. Client connects to server.
  2. 2. Server sends client it's public key.
  3. 3. Client encrypts it's hashed password and it's public key with the server's public key and sends these to the server (with HMAC).
  4. 4. Server checks the HMAC and decrypts the data. It then checks if the user's password is correct.
  5. 5. Valid Password:
  6. Server generates a symmetric AES key, encryptes it with the client's public key, and sends it to the client (with HMAC?).
  7. Client now encrypts all data with this key. Server does the same.
  8. Invalid Password:
  9. Server sends some sort of error packet to the client.
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement