Documentation
¶
Index ¶
- Constants
- func Decrypt(key, toDecrypt []byte) ([]byte, error)
- func DecryptWithAES128(key, src []byte) ([]byte, error)
- func DecryptWithAES256(key, src []byte) ([]byte, error)
- func DecryptWithXORBase64(key, src []byte) ([]byte, error)
- func Encrypt(key, toEncrypt []byte, encType byte) ([]byte, error)
- func EncryptWithAES128(key, src []byte) ([]byte, error)
- func EncryptWithAES256(key, src []byte) ([]byte, error)
- func EncryptWithXORBase64(key, src []byte) ([]byte, error)
- func PKCS7Padding(ciphertext []byte, blockSize int) []byte
- func PKCS7UnPadding(origData []byte) []byte
Constants ¶
View Source
const ( TypeXORBase64 byte = 0x01 TypeAES128 byte = 0x02 TypeAES256 byte = 0x03 )
Variables ¶
This section is empty.
Functions ¶
func DecryptWithAES128 ¶
func DecryptWithAES256 ¶
func DecryptWithXORBase64 ¶
func EncryptWithAES128 ¶
func EncryptWithAES256 ¶
func PKCS7Padding ¶
func PKCS7UnPadding ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.