Documentation
¶
Index ¶
Constants ¶
View Source
const ( // MaxLength bounds the Argon2 work an unauthenticated request can ask for. MinLength = 10 MaxLength = 128 // HIBPAPITimeout is the timeout for Have I Been Pwned API calls HIBPAPITimeout = 3 * time.Second // HIBPURL is the Have I Been Pwned API endpoint HIBPURL = "https://api.pwnedpasswords.com/range/" )
Variables ¶
View Source
var ( ErrTooShort = errors.New("too short") ErrTooLong = errors.New("too long") ErrTooCommon = errors.New("too common") ErrBreached = errors.New("found in a breach corpus") )
Sentinels rather than messages: the wording a client sees belongs to the boundary.
Functions ¶
This section is empty.
Types ¶
Click to show internal directories.
Click to hide internal directories.