Documentation ¶
Index ¶
- func AESCBCDecrypt(crypted, key, iv []byte) ([]byte, error)
- func AESCBCEncrypt(origData, key, iv []byte) ([]byte, error)
- func AesECBDecrypt(crypted, key []byte) ([]byte, error)
- func AesECBEncrypt(data, key []byte) ([]byte, error)
- func EncodeMD5(value string) string
- 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 AESCBCDecrypt ¶
func AESCBCEncrypt ¶
func AesECBDecrypt ¶
func AesECBEncrypt ¶
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.