Documentation ¶
Index ¶
- Constants
- func DesCBCDecrypt(key []byte, cipherText []byte, iv []byte, padding int) ([]byte, error)
- func DesCBCEncrypt(key []byte, clearText []byte, iv []byte, padding int) ([]byte, error)
- func DesECBDecrypt(key []byte, cipherText []byte, padding int) ([]byte, error)
- func DesECBEncrypt(key []byte, clearText []byte, padding int) ([]byte, error)
- func PKCS5Padding(text []byte, blockSize int) []byte
- func PKCS5Unpadding(text []byte) []byte
- func Padding(text []byte, padding int) ([]byte, error)
- func TripleDesCBCDecrypt(key []byte, cipherText []byte, iv []byte, padding int) ([]byte, error)
- func TripleDesCBCEncrypt(key []byte, clearText []byte, iv []byte, padding int) ([]byte, error)
- func TripleDesECBDecrypt(key []byte, cipherText []byte, padding int) ([]byte, error)
- func TripleDesECBEncrypt(key []byte, clearText []byte, padding int) ([]byte, error)
- func UnPadding(text []byte, padding int) ([]byte, error)
Constants ¶
View Source
const ( NOPADDING = iota PKCS5PADDING )
Variables ¶
This section is empty.
Functions ¶
func DesCBCDecrypt ¶
CBC模式DES解密
func DesCBCEncrypt ¶
CBC模式DES加密
func DesECBDecrypt ¶
ECB模式DES解密
func DesECBEncrypt ¶
ECB模式DES加密
func TripleDesCBCDecrypt ¶
CBC模式3DES解密
func TripleDesCBCEncrypt ¶
CBC模式3DES加密
func TripleDesECBDecrypt ¶
ECB模式3DES解密,密钥长度可以是16或24位长
func TripleDesECBEncrypt ¶
ECB模式3DES加密,密钥长度可以是16或24位长
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.