Documentation ¶
Index ¶
Constants ¶
View Source
const Version = 1
Version is the hashing format version
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Hasher ¶
type Hasher interface { // CreateHash will return a hashed version of the secretKey, or an error CreateHash(secretKey string) (string, error) // VerifyHash will compare a secretKey and a hash, and return nil if they match VerifyHash(hash, secretKey string) error }
Hasher is a generic interface for hashing algorithms
type SCrypt ¶
SCrypt contains all of the variables needed for scrypt hashing
func (SCrypt) CreateHash ¶
CreateHash will return a hashed version of the secretKey, or an error
func (SCrypt) VerifyHash ¶
VerifyHash will compare a secretKey and a hash, and return nil if they match
Click to show internal directories.
Click to hide internal directories.