Documentation
¶
Overview ¶
Package blocklist holds the embedded list of common passwords access refuses, generated from SecLists by "go generate ./internal/blocklist", and the fold the password-context and common-password checks share.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Encode ¶
Encode renders h, with Kept and BodySHA256 taken from entries, a blank line, then one entry per line. Every entry must be non-empty and hold no newline, or Decode refuses the result.
func Fold ¶
Fold returns s in the form the list holds and the password-context and common-password checks compare: NFC, then full Unicode case folding.
func ReadCommit ¶
ReadCommit returns the SecLists commit the header of the list file at path records, refusing a file Decode refuses and a commit that is not 40 lowercase hex characters.
Types ¶
type Header ¶
type Header struct {
URL string // the source file at Commit
Commit string
SourceSHA256 string
BodySHA256 string // of every byte after the header's blank line
MinRunes int // the shortest entry kept, in runes after Fold
SourceEntries int // non-empty lines in the source
Survivors int // distinct folded entries of at least MinRunes
Kept int // the first Survivors in the source's order, capped
}
Header is common.txt's provenance.