Documentation
¶
Index ¶
- Constants
- func CheckPasswordHash(password, hash string) bool
- func DecryptString(key, ciphertext string) (string, error)
- func EncryptString(key, plaintext string) (string, error)
- func HashPassword(password string) (string, error)
- func Md5(data []byte) string
- func Md5WithSalt(data, salt string) string
- func Sha1(input string) string
Constants ¶
View Source
const Slat = "mscommunity!@#$%"
Variables ¶
This section is empty.
Functions ¶
func CheckPasswordHash ¶
CheckPasswordHash 验证密码是否匹配
func HashPassword ¶
HashPassword 使用 bcrypt 生成哈希密码
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.