Documentation ¶
Index ¶
- func AesDecrypt(crypted, key []byte) []byte
- func AesDecrypt7(crypted, key []byte) []byte
- func AesEncrypt(src, key string) []byte
- func AesEncrypt7(src, key string) []byte
- func CbcDecrypt(src, key, iv []byte) (strDesc string, err error)
- func Decrypt(ciphertext, key []byte) ([]byte, error)
- func Encrypt(plantText, key []byte) ([]byte, error)
- func NewECBDecrypter(b cipher.Block) cipher.BlockMode
- func NewECBEncrypter(b cipher.Block) cipher.BlockMode
- 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
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AesDecrypt ¶
func AesDecrypt7 ¶
func AesEncrypt ¶
func AesEncrypt7 ¶
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 PKCS5Padding ¶
func PKCS5UnPadding ¶
func PKCS7Padding ¶
func PKCS7UnPadding ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.