Skip to content

Best practices regarding password authentication for a Web service #31

Answered by breard-r
mkpankov asked this question in Q&A
Discussion options

You must be logged in to vote

Hi!

  1. LibreAuth already handles the salt, you don't have to do it yourself: each hashed password has a random one. Although you can change the salt's size, I would recommend to stick to the default value.
  2. Yes, transmitting the plain-text password over HTTPS and hashing it on the server is the most common and easiest way to go. It's ok to do it as long as your HTTPS stack is secured (no self-signed certificates, no deprecated protocol versions, no weak cipher suites, etc).
  3. Yes and no. Instead of creating a specific procedure, the best way to do so is to do it when the user logs-in since that, at this moment, you have the plain-text password.

Concerning your second question, here is more de…

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@mkpankov
Comment options

@breard-r
Comment options

Answer selected by mkpankov
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants