Documentation ¶
Index ¶
- func Aes128Decrypt(crypted, key []byte, IV []byte) ([]byte, error)
- func Aes128Encrypt(origData, key []byte, IV []byte) ([]byte, error)
- func CheckPasswordHash(password, salt, originPassword string) bool
- func EncodeMD5(value string) string
- func HashPassword(password string) (salt string, dbPassword string)
- func HashSaltPassword(salt string, password string) (dbPassword string)
- func PKCS5Padding(ciphertext []byte, blockSize int) []byte
- func PKCS5UnPadding(origData []byte) []byte
- func PswDecrypt(src string, skey string, ivParameter string) string
- func PswEncrypt(src string, skey string, ivParameter string) string
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CheckPasswordHash ¶
CheckPasswordHash 验证密码
func HashPassword ¶
HashPassword 密码加密
func HashSaltPassword ¶
HashSaltPassword 密码加密
func PKCS5Padding ¶
func PKCS5UnPadding ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.