Documentation ¶
Index ¶
- Variables
- func AesDecrypt(ciphertext, key []byte) ([]byte, error)
- func AesEncrypt(plantText, key []byte) ([]byte, error)
- func DesDecrypt(crypted, key []byte) ([]byte, error)
- func DesEncrypt(origData, key []byte) ([]byte, error)
- func PKCS5Padding(ciphertext []byte, blockSize int) []byte
- func PKCS5UnPadding(origData []byte) []byte
- func PKCS7Padding(ciphertext []byte, blockSize int) []byte
- func PKCS7UnPadding(plantText []byte, blockSize int) []byte
- func TripleDesBase64DecryptStr(data string) (string, error)
- func TripleDesBase64EncryptStr(data string) (string, error)
- func TripleDesDecrypt(crypted, key []byte) ([]byte, error)
- func TripleDesEncrypt(origData, key []byte) ([]byte, error)
- func ZeroPadding(ciphertext []byte, blockSize int) []byte
- func ZeroUnPadding(origData []byte) []byte
Constants ¶
This section is empty.
Variables ¶
View Source
var (
TRIPLE_DES_KEY []byte = []byte("@UNION_@#TRPLE_##ENCRY_#") // 24 bytes
)
Functions ¶
func AesDecrypt ¶
func AesEncrypt ¶
func DesDecrypt ¶
func DesEncrypt ¶
func PKCS5Padding ¶
func PKCS5UnPadding ¶
func PKCS7Padding ¶
func PKCS7UnPadding ¶
func ZeroPadding ¶
func ZeroUnPadding ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.