Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BcryptHasher ¶
type BcryptHasher struct {
// contains filtered or unexported fields
}
BcryptHasher is a password hashing and checking implementation using bcrypt.
func NewBcryptHasher ¶
func NewBcryptHasher() *BcryptHasher
NewBcryptHasher returns a new BcryptHasher instance.
func NewBcryptWithCost ¶
func NewBcryptWithCost(cost int) *BcryptHasher
type Checker ¶
type Checker struct {
// contains filtered or unexported fields
}
Checker is a struct that checks if a password is good enough.
func NewCheckerWithEntropy ¶
NewCheckerWithEntropy creates a new Checker with a custom minimum entropy.
type DummyHasher ¶
type DummyHasher struct {
// contains filtered or unexported fields
}
DummyHasher is a dummy password hashing and checking implementation.
func NewDummyHasher ¶
func NewDummyHasher(spy *util.Spy) *DummyHasher
NewDummyHasher returns a new DummyHasher instance.
Click to show internal directories.
Click to hide internal directories.