Documentation ¶
Overview ¶
* * @Author: TheLife * @Date: 2020-2-25 9:00 下午
* * @Author: TheLife * @Date: 2020-2-25 9:00 下午
* * @Author: TheLife * @Date: 2020-2-25 9:00 下午
* * @Author: TheLife * @Date: 2020-2-25 9:00 下午
* * @Author: TheLife * @Date: 2020-2-25 9:00 下午
Index ¶
- func AesDecrypt(crypted, key []byte, iv []byte, unPaddingFunc func([]byte) (error, []byte)) ([]byte, error)
- func AesDecryptPkcs5(crypted []byte, key []byte, iv []byte) ([]byte, error)
- func AesDecryptSimple(crypted string, key string, iv string) (string, error)
- func AesEncrypt(origData []byte, key []byte, iv []byte, paddingFunc func([]byte, int) []byte) ([]byte, error)
- func AesEncryptPkcs5(origData []byte, key []byte, iv []byte) ([]byte, error)
- func AesEncryptSimple(origData string, key string, iv string) (string, error)
- func EncodeMD5(value string) string
- func EncodeSha256(value string) string
- func EncodeSha384(value string) string
- func EncodeSha512(value string) string
- func PKCS5Padding(ciphertext []byte, blockSize int) []byte
- func PKCS5UnPadding(origData []byte) (err error, byte []byte)
- func Rc4Decrypt(key []byte, crypted []byte) (text []byte)
- func Rc4DecryptSimple(key string, crypted string) (text string)
- func Rc4Encrypt(key []byte, origData []byte) (text []byte)
- func Rc4EncryptSimple(key string, origData string) (text string)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AesDecrypt ¶
func AesDecryptSimple ¶
aes解密
func AesEncrypt ¶
func AesEncryptSimple ¶
aes加密
func PKCS5Padding ¶
func PKCS5UnPadding ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.