Homepage
Sign in / Sign up
Go to the profile of Rocha
Rocha
+ - × ÷
Aug 25, 2016
Programmers, please don’t store passwords
Mat Ryer
62

In Go’s bcrypt.GenerateFromPassword function there’s no need to explicitly salt your passwords; that’s handled automatically.

Here’s the function in the source code: https://github.com/golang/crypto/blob/master/bcrypt/bcrypt.go#L84

And here’s where the salting happens: https://github.com/golang/crypto/blob/master/bcrypt/bcrypt.go#L129

  • Go to the profile of Rocha

    Rocha

    + - × ÷

    • Share
    Go to the profile of Rocha
    Never miss a story from Rocha, when you sign up for Medium. Learn more
    Never miss a story from Rocha