Documentation ¶
Index ¶
- func DesCBCDecrypt(src, key string) string
- func DesCBCEncrypt(src, key string) string
- func DesDecrypt(data []byte, key string) ([]byte, error)
- func DesEncrypt(data []byte, key string) ([]byte, error)
- func PKCS5Padding(encryptedData []byte, blockSize int) []byte
- func PKCS5UnPadding(plainData []byte) []byte
- func RsaDecryptWithSha1Base64(encryptedData, privateKey string) (string, error)
- func RsaEncryptWithSha1Base64(plainData, publicKey string) (string, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func RsaDecryptWithSha1Base64 ¶
解密:对采用sha1算法加密后转base64格式的数据进行解密(私钥PKCS1格式)
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.