Documentation ¶
Overview ¶
包gdes提供了DES加密/解密算法的有用API。 md5:c8b6785595a2b6ed
Index ¶
- Constants
- func Padding(text []byte, padding int) ([]byte, error)
- func PaddingPKCS5(text []byte, blockSize int) []byte
- func UnPadding(text []byte, padding int) ([]byte, error)
- func UnPaddingPKCS5(text []byte) []byte
- func X加密CBC(待加密 []byte, 密钥 []byte, iv []byte, 填充 int) ([]byte, error)
- func X加密ECB(待加密 []byte, 秘钥 []byte, 填充 int) ([]byte, error)
- func X加密三重CBC(待加密 []byte, 密钥 []byte, iv []byte, 填充 int) ([]byte, error)
- func X加密三重ECB(待加密 []byte, 秘钥 []byte, 填充 int) ([]byte, error)
- func X解密CBC(待解密 []byte, 密钥 []byte, iv []byte, 填充 int) ([]byte, error)
- func X解密ECB(待解密 []byte, 秘钥 []byte, 填充 int) ([]byte, error)
- func X解密三重CBC(待解密 []byte, 密钥 []byte, iv []byte, 填充 int) ([]byte, error)
- func X解密三重ECB(待解密 []byte, 秘钥 []byte, 填充 int) ([]byte, error)
Constants ¶
View Source
const ( X常量_NOPADDING = iota PKCS5PADDING )
Variables ¶
This section is empty.
Functions ¶
func PaddingPKCS5 ¶
func UnPaddingPKCS5 ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.