title: Handle user login using asymmetric cryptography
body: <p>Is it possible to implement a login protocol with asymetric cryptography instead of the hashed password method?</p>
  
  <p>For example, while creating an account, the client generates a private/public key pair from a hash of the username and password. The public key is then sent to the server with the username, and the server stores the username and the public key. When the user wants to login, he enters his password, the client regenerates the private key, signs a nonce with it, and sends the signed message to the server. The server is then able to authenticate the user as he knows the public key associated with the username.</p>
  
  <p>Is there any flaws in this protocol?</p>
  
  <p>And what would be the advantages over storing the password hash?</p>