Documentation ¶
Index ¶
- func AesDeCrypt(cypted []byte, key []byte) ([]byte, error)
- func AesEcrypt(origData []byte, key []byte) ([]byte, error)
- func GeneratePassword(userPassword string) ([]byte, error)
- func Md5(str string) string
- func PKCS7Padding(ciphertext []byte, blockSize int) []byte
- func PKCS7UnPadding(origData []byte) ([]byte, error)
- func ValidatePassword(userPassword string, hashed string) (isOK bool, err error)
- type Pwd
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GeneratePassword ¶
GeneratePassword 给密码就行加密操作
Types ¶
Click to show internal directories.
Click to hide internal directories.