Documentation ¶
Overview ¶
Package ssha provides functions to generate and validate {SSHA} styled password schemes. The method used is defined in RFC 2307 and uses a salted SHA1 secure hashing algorithm
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrBase64DecodeFailed = errors.New("base64 decode of hash failed")
ErrBase64DecodeFailed occurs when the given hash cannot be decode
View Source
var ErrNotMatching = errors.New("hash does not match password")
ErrNotMatching occurs when the given password and hash do not match
View Source
var ErrNotSshaPassword = errors.New("string is not a SSHA hashed password")
ErrNotSshaPassword occurs when Validate receives a non-SSHA hash
Functions ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.