Documentation ¶
Index ¶
- func AesDecrypt(decryptStr string, key []byte, iv string) (string, error)
- func AesEncrypt(encryptStr string, key []byte, iv string) (string, error)
- func BcryptCheck(password, hash string) bool
- func BcryptHash(password string) string
- func Hmac(secretKey, body string) string
- func MD5(s string) string
- func RsaPrivateDecrypt(decryptStr string, privateKeyPath string) (string, error)
- func RsaPublicEncrypt(encryptStr string, publicKeyPath string) (string, error)
- func SHA1(s string) string
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AesDecrypt ¶
Decrypt 解密
func AesEncrypt ¶
Encrypt 加密 aes_128_cbc
func RsaPrivateDecrypt ¶
PrivateDecrypt 私钥解密
func RsaPublicEncrypt ¶
PublicEncrypt 公钥加密
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.