Documentation
¶
Index ¶
- func AesDecrypt(encrypted, key string, ivs ...string) (ret string, err error)
- func AesEncrypt(plaintext, key string, ivs ...string) (ret string, err error)
- func Base64Decode(base64Str string, inUrl ...bool) (msg string, err error)
- func Base64Encode(msg string, inUrl ...bool) (base64Str string)
- func Md5(str string) (encode string)
- func PKCS5UnPadding(src []byte) []byte
- func RsaDecrypt(ciphertextBase64, privateKeyStr string) (origData string, err error)
- func RsaEncrypt(origDataStr, publicKeyStr string) (ciphertextBase64 string, err error)
- func RsaKeyClean(key string) (base64 string)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Base64Decode ¶ added in v1.2.0
func Base64Encode ¶ added in v1.2.0
func PKCS5UnPadding ¶ added in v1.0.3
PKCS5UnPadding用必要的数据来填充某个数据团,以用于AES块状密码。
func RsaDecrypt ¶
func RsaEncrypt ¶
func RsaKeyClean ¶ added in v1.2.0
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.