Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type PasswordHasher ¶
type PasswordHasher interface { CreateHash(password, salt []byte) ([]byte, error) MakeSalt() (salt []byte, err error) }
PasswordHasher generates password hash.
type PasswordHasherImpl ¶
type PasswordHasherImpl struct{}
func NewPasswordHasherImpl ¶
func NewPasswordHasherImpl() *PasswordHasherImpl
NewPasswordHasherImpl is a constructor.
func (PasswordHasherImpl) CreateHash ¶
func (p PasswordHasherImpl) CreateHash(password, salt []byte) ([]byte, error)
CreateHash generates password hash.
func (PasswordHasherImpl) MakeSalt ¶
func (p PasswordHasherImpl) MakeSalt() (salt []byte, err error)
MakeSalt generates salt.
Click to show internal directories.
Click to hide internal directories.