Documentation
¶
Overview ¶
Package phpass provides verification of passwords hashed using the PHPass algorithm.
Note that PHPass is based on MD5 and is considered weak by modern standards. This package is only provided for legacy applications that wish to migrate away from PHPass to newer hashing methods.
Index ¶
Constants ¶
View Source
const ( IdentifierP = "$P$" IdentifierH = "$H$" Format = "%s$%s" )
View Source
const ( DefaultMinRounds = 7 DefaultMaxRounds = 31 )
View Source
const HashLength = 34
Variables ¶
View Source
var DefaultValidationOpts = &ValidationOpts{ MinRounds: DefaultMinRounds, MaxRounds: DefaultMaxRounds, }
Functions ¶
This section is empty.
Types ¶
type ValidationOpts ¶ added in v0.12.0
type Verifier ¶
type Verifier struct {
// contains filtered or unexported fields
}
func NewVerifier ¶ added in v0.12.0
func NewVerifier(opts *ValidationOpts) *Verifier
Click to show internal directories.
Click to hide internal directories.