Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ComparePassword ¶
CompareHash hashes a password and compares it to previously hashed password.
func GenerateSecret ¶
GenerateSecret generates a secret for HMAC hashing.
func HashPassword ¶
HashPassword creates a hash of secret and password.
func ReplaceEnvs ¶
ReplaceEnv replaces HOME and ~ in a string with contents of the $HOME environment variable.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.