Documentation ¶
Index ¶
- type HashManager
- type HashManagerMock
- func (t *HashManagerMock) Hash(password string) (string, error)
- func (t *HashManagerMock) HashWithSalt(password string) (string, string, error)
- func (t *HashManagerMock) Validate(password string, hash string) (bool, error)
- func (t *HashManagerMock) ValidateWithSalt(password string, salt string, hash string) (bool, error)
- type Hasher
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type HashManager ¶
type HashManagerMock ¶
func (*HashManagerMock) HashWithSalt ¶
func (t *HashManagerMock) HashWithSalt(password string) (string, string, error)
func (*HashManagerMock) Validate ¶
func (t *HashManagerMock) Validate(password string, hash string) (bool, error)
func (*HashManagerMock) ValidateWithSalt ¶
type Hasher ¶
type Hasher struct{}
func NewPasswordHasher ¶
func NewPasswordHasher() *Hasher
func (*Hasher) HashWithSalt ¶
Click to show internal directories.
Click to hide internal directories.