Documentation ¶
Index ¶
- func AesDecrypt(crypted, key []byte) ([]byte, error)
- func AesEncrypt(origData, key []byte) ([]byte, error)
- func Base64AesDeResult(crypted string, key []byte) (string, error)
- func Base64AesEnResult(orig []byte, key []byte) (string, error)
- func Base64EncodeDesResult(orig []byte, key []byte) (string, 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 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 ¶
This section is empty.
Functions ¶
func AesDecrypt ¶
func AesEncrypt ¶
func Base64AesDeResult ¶
base64 decode, then AES-128 decrypt. key length:16, 24, 32 bytes to AES-128, AES-192, AES-256
func Base64AesEnResult ¶
******************************************************** AES-128 encrypt, then base64 encode. key length:16, 24, 32 bytes to AES-128, AES-192, AES-256
func Base64EncodeDesResult ¶
base64 encoding result of DES
func PKCS5Padding ¶
func PKCS5UnPadding ¶
func TripleDesDecrypt ¶
3DES, len(key) == 24
func TripleDesEncrypt ¶
3DES, len(key) == 24
func ZeroPadding ¶
func ZeroUnPadding ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.