Documentation ¶
Overview ¶
*
- cbc模式. *
- User: zhangbob
- Date: 2018/7/5
- Time: 下午2:14
Index ¶
- func Decrypt(data []byte, key []byte) ([]byte, error)
- func DecryptToCBC(encodeString string, key []byte) (string, error)
- func DesDecrypt(encodeString string, key []byte) (string, error)
- func Encrypt(data, key []byte) ([]byte, error)
- func EncryptToCBC(src, key string) (string, error)
- func PKCS5Padding(ciphertext []byte, blockSize int) []byte
- func PKCS5UnPadding(origData []byte) []byte
- func ZeroPadding(ciphertext []byte, blockSize int) []byte
- func ZeroUnPadding(origData []byte) []byte
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func PKCS5Padding ¶
func PKCS5UnPadding ¶
func ZeroPadding ¶
func ZeroUnPadding ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.