validator

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Sep 12, 2023 License: CC-BY-4.0, MIT Imports: 4 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetEntropy

func GetEntropy(password string) float64

GetEntropy returns the entropy in bits for the given password See the ReadMe for more information

func Validate

func Validate(password string, minEntropy float64) error

Validate returns nil if the password has greater than or equal to the minimum entropy. If not, an error is returned that explains how the password can be strengthened. This error is safe to show the client

Types

This section is empty.

Jump to

Keyboard shortcuts

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