Documentation ¶
Index ¶
- func ComparePassword(hashedPassword, password string) error
- func FileMd5(file string) (string, error)
- func Md5(str string) string
- func PKCS5Adding(ciphertext []byte, blockSize int) []byte
- func PKCS5UnPadding(origData []byte) []byte
- func ScryptPasswd(password string) string
- func Sha256(str string) string
- func Sha512(str string) string
- type AesEncrypt
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ComparePassword ¶
ComparePassword 密码比较
func PKCS5Adding ¶
func PKCS5UnPadding ¶
Types ¶
type AesEncrypt ¶
type AesEncrypt struct {
// contains filtered or unexported fields
}
func NewAesEncryptInstance ¶
func NewAesEncryptInstance(key string, secret string) (*AesEncrypt, error)
func (*AesEncrypt) AesBase64Decrypt ¶
func (a *AesEncrypt) AesBase64Decrypt(b string) (string, error)
AesBase64Decrypt aes Base64 解密
func (*AesEncrypt) AesBase64Encrypt ¶
func (a *AesEncrypt) AesBase64Encrypt(in string) (string, error)
AesBase64Encrypt aes Base64 加密
Click to show internal directories.
Click to hide internal directories.