Hash hashes the given plain text secret.
(plain string)
| 30 | |
| 31 | // Hash hashes the given plain text secret. |
| 32 | Hash(plain string) (string, error) |
| 33 | |
| 34 | // Validate checks whether the given plain text secret is equal or not to |
| 35 | // the given hashed secret. |