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 EncodeMD5Bytes(value string) []byte
- func EncodeMD5String(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 Pkcs7Padding(cipherText []byte, blockSize int) []byte
- func UnPadding(origData []byte) []byte
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AESCBCDecrypt ¶
func AESCBCEncrypt ¶
func AesECBDecrypt ¶
func AesECBEncrypt ¶
func EncodeMD5Bytes ¶
func EncodeMD5String ¶
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 Pkcs7Padding ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.