passwords

package
v0.1.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 10, 2026 License: AGPL-3.0 Imports: 3 Imported by: 0

Documentation

Overview

Package passwords exposes the embedded common-password blocklist used at signup and password-reset to reject the most-prevalent passwords.

Source: SecLists 10k-most-common (descended from leaked-credential corpora; widely used by HIBP-aligned tooling). The cutoff at 10k is a pragmatic balance: blocks the high-prevalence head of the distribution without bloating the binary or pushing legitimate, hard-to-guess passwords into a false-positive tail.

To refresh the list, replace internal/passwords/common_passwords.txt with a new SecLists snapshot and re-run the test suite.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func IsCommon

func IsCommon(password string) bool

IsCommon reports whether password matches a known common-password entry (case-insensitive). Used at signup and password-reset.

func Size

func Size() int

Size returns the number of entries in the embedded list. Test affordance.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL