CheckPassword securely compares a bcrypt hashed password with its possible plaintext equivalent. Returns nil on success, or an error on failure.
(hash, password []byte)
| 45 | // CheckPassword securely compares a bcrypt hashed password with its possible |
| 46 | // plaintext equivalent. Returns nil on success, or an error on failure. |
| 47 | func CheckPasswordHash(hash, password []byte) error { |
| 48 | return bcrypt.CompareHashAndPassword(hash, password) |
| 49 | } |
no outgoing calls