Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func UnPHPSerializeToStruct ¶
UnPHPSerializeToStruct 使用 json tag
Types ¶
type PasswordHash ¶
type PasswordHash struct {
// contains filtered or unexported fields
}
PasswordHash 目前还不完善,只有 Encode64 getRandomBytes CryptPrivate 方法能用
func NewPasswordHash ¶
func NewPasswordHash(iterationCountLog2 int, portableHashes bool) *PasswordHash
func (*PasswordHash) CheckPassword ¶
func (p *PasswordHash) CheckPassword(pass, hash string) bool
func (*PasswordHash) CryptPrivate ¶
func (p *PasswordHash) CryptPrivate(password, set string) (rr string, err error)
func (*PasswordHash) Encode64 ¶
func (p *PasswordHash) Encode64(input string, count int) (out string)
func (*PasswordHash) HashPassword ¶
func (p *PasswordHash) HashPassword(pass string) (r string, err error)
Click to show internal directories.
Click to hide internal directories.