Documentation ¶ Index ¶ func GetEntropy(password string) float64 func Validate(password string, minEntropy float64) error 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. Source Files ¶ View all Source files entropy.go validate.go Click to show internal directories. Click to hide internal directories.