Documentation
¶
Index ¶
- func AesDecrypt(data []byte, key []byte) ([]byte, error)
- func AesDecryptBase64(data string, key []byte) ([]byte, error)
- func AesEncrypt(data []byte, key []byte) ([]byte, error)
- func AesEncryptBase64(data []byte, key []byte) (string, error)
- func CheckPwdHash(password, hash string) bool
- func GenerateRSAKey(bits int) (string, string, error)
- func Md5(str string) string
- func PwdHash(password string) string
- func RsaDecrypt(privateKeyStr string, data []byte) ([]byte, error)
- func RsaEncrypt(publicKeyStr string, data []byte) ([]byte, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AesDecryptBase64 ¶
AesDecryptBase64 base64解码后再 aes解码
func AesEncryptBase64 ¶
AesEncryptBase64 aes加密 后 再base64
func GenerateRSAKey ¶
GenerateRSAKey 生成RSA私钥和公钥字符串 bits 证书大小 @return privateKeyStr publicKeyStr error
func RsaDecrypt ¶
RsaDecrypt rsa解密
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.