Documentation ¶
Index ¶
- func AesDecrypt(cryted string, key string) string
- func AesEncrypt(orig string, key string) string
- func Base64Decode(src []byte) ([]byte, error)
- func Base64Encode(src []byte) []byte
- func Decrypt(decrypted string, key []byte) (string, error)
- func Encrypt(text string, key []byte) (string, error)
- func Md5Check(content, encrypted string) bool
- func Md5Encode(data string) string
- func PKCS7Padding(ciphertext []byte, blocksize int) []byte
- func PKCS7UnPadding(origData []byte) []byte
- func RsaDecrypt(ciphertext []byte) ([]byte, error)
- func RsaEncrypt(origData []byte) ([]byte, error)
- func Sha1(s string) string
- func ZeroPadding(ciphertext []byte, blockSize int) []byte
- func ZeroUnPadding(origData []byte) []byte
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AesEncrypt ¶
--------- AES加解密 相关 ----------- aes 加密
func Base64Decode ¶
func Base64Encode ¶
func ZeroPadding ¶
func ZeroUnPadding ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.