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 ¶ added in v1.1.0
func AESCBCEncrypt ¶ added in v1.1.0
func AesECBDecrypt ¶ added in v1.1.0
func AesECBEncrypt ¶ added in v1.1.0
func NewECBDecrypter ¶ added in v1.1.0
NewECBDecrypter returns a BlockMode which decrypts in electronic code book mode, using the given Block
func NewECBEncrypter ¶ added in v1.1.0
NewECBEncrypter returns a BlockMode which encrypts in electronic code book mode, using the given Block.
func PKCS5Padding ¶ added in v1.1.0
func PKCS5UnPadding ¶ added in v1.1.0
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.