password

package
v3.1.0 Latest Latest
Warning

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

Go to latest
Published: Aug 26, 2026 License: CC-BY-4.0, MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ComparePassword

func ComparePassword(hashedPassword, password []byte) bool

ComparePassword compares a hashed password with its possible plaintext equivalent.

func CreatePassword

func CreatePassword(pw string, strength int) ([]byte, error)

CreatePassword returns a hashed version of the given password.

func ValidateNewPassword

func ValidateNewPassword(pw string) error

Types

This section is empty.

Jump to

Keyboard shortcuts

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