Documentation ¶
Index ¶
- func VerifyBcrypt(ent IEntity) (bool, error)
- func VerifyBcrypt2(ent IEntity) (bool, error)
- func VerifyBcrypt3(ent IEntity) (bool, error)
- func VerifyMD5(ent IEntity) (bool, error)
- func VerifySHA1(ent IEntity) (bool, error)
- type GeneratePasswd
- func GenerateBcrypt(password string, ptype string) (*GeneratePasswd, error)
- func GenerateBcrypt2(password string, ptype string) (*GeneratePasswd, error)
- func GenerateBcrypt3(password string, ptype string) (*GeneratePasswd, error)
- func GenerateMD5(password string, ptype string) (*GeneratePasswd, error)
- func GenerateSHA1(password string, ptype string) (*GeneratePasswd, error)
- type IEntity
- type Validator
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type GeneratePasswd ¶
type GeneratePasswd struct { Password string // 加密后的密码 PasswordSalt string // 密码盐值 PasswordType string // 加密类型 }
GeneratePasswd 生成的密码
func GenerateBcrypt ¶
func GenerateBcrypt(password string, ptype string) (*GeneratePasswd, error)
GenerateBcrypt bcrypt
func GenerateBcrypt2 ¶
func GenerateBcrypt2(password string, ptype string) (*GeneratePasswd, error)
GenerateBcrypt2 bcrypt
func GenerateBcrypt3 ¶
func GenerateBcrypt3(password string, ptype string) (*GeneratePasswd, error)
GenerateBcrypt3 bcrypt
func GenerateMD5 ¶
func GenerateMD5(password string, ptype string) (*GeneratePasswd, error)
GenerateMD5 bcrypt
func GenerateSHA1 ¶
func GenerateSHA1(password string, ptype string) (*GeneratePasswd, error)
GenerateSHA1 bcrypt
Click to show internal directories.
Click to hide internal directories.