Documentation
¶
Index ¶
- func Base64Encode(data []byte) []byte
- func DecodeBase64(b []byte) ([]byte, error)
- func DecodeHex(b []byte) ([]byte, error)
- func Decrypt_aes256_cbc_base64(data []byte, encryptionKey []byte) ([]byte, error)
- func Decrypt_aes256_cbc_plain(data []byte, encryptionKey []byte) ([]byte, error)
- func Decrypt_aes256_ecb_base64(data []byte, encryptionKey []byte) ([]byte, error)
- func Decrypt_aes256_ecb_plain(data []byte, encryptionKey []byte) ([]byte, error)
- func EncodeHex(b []byte) []byte
- func Encrypt_aes256_cbc_base64(plaintext, key []byte) ([]byte, error)
- func NewECBDecrypter(b cipher.Block) cipher.BlockMode
- func NewECBEncrypter(b cipher.Block) cipher.BlockMode
- func Pkcs7Pad(data []byte, blockSize int) []byte
- func Pkcs7Unpad(data []byte) []byte
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Base64Encode ¶
func DecodeBase64 ¶
func NewECBDecrypter ¶
NewECBDecrypter returns a BlockMode which decrypts in electronic code book mode, using the given Block.
func NewECBEncrypter ¶
NewECBEncrypter returns a BlockMode which encrypts in electronic code book mode, using the given Block.
func Pkcs7Unpad ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.