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