Documentation
¶
Overview ¶
Package encryption source https://github.com/spotlight21c/aesencryptor
Index ¶
- func AesDecrypt(encrypted, key []byte) ([]byte, error)
- func AesEncrypt(origData, key []byte) (string, error)
- func DecryptAES(encrypted, key []byte) ([]byte, error)
- func EncryptAES(src, 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
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AesDecrypt ¶ added in v1.3.2
AesDecrypt 兼容js的CryptoJS的AES
func AesEncrypt ¶ added in v1.3.2
AesEncrypt 兼容js的CryptoJS的AES
func DecryptAES ¶
func EncryptAES ¶
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 ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.