credentials

package
v0.8.5 Latest Latest
Warning

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

Go to latest
Published: Apr 18, 2022 License: ISC Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ComparePassword

func ComparePassword(hash, password []byte) bool

ComparePassword compares a hashed password with its possible plaintext equivalent.

func IsPasswordPwned

func IsPasswordPwned(password string) (bool, error)

IsPasswordPwned determines whether or not the password is weak.

Types

type Manager

type Manager struct {
	// contains filtered or unexported fields
}

Manager holds information for managing credentials.

func CreateManager

func CreateManager(checkHIBP bool, c configuration.CryptoConfig) *Manager

CreateManager instanciates a credential manager.

func (*Manager) CreatePasswordHash

func (m *Manager) CreatePasswordHash(password string) ([]byte, error)

CreatePasswordHash returns a hashed version of the given password.

Jump to

Keyboard shortcuts

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