CompareString compares the given password with the given PHC encoded hash, returns true if they match. The time taken is a function of the length of the slices and is independent of the contents.
(password, phc string)
| 133 | // returns true if they match. The time taken is a function of the length of |
| 134 | // the slices and is independent of the contents. |
| 135 | func CompareString(password, phc string) (bool, error) { |
| 136 | return Compare([]byte(password), []byte(phc)) |
| 137 | } |
searching dependent graphs…