Documentation ¶
Index ¶
- func DesDecrypt(msg string, key string, iv string) (string, error)
- func DesDecryptECB(msg string, key string) (string, error)
- func DesEncrypt(msg string, key string, iv string) (string, error)
- func DesEncryptECB(msg string, key string) (string, error)
- func PKCS5Padding(ciphertext []byte, blockSize int) []byte
- func PKCS5UnPadding(origData []byte) []byte
- func TripleDesDecrypt(msg string, key string, iv string) (string, error)
- func TripleDesEncrypt(msg string, key string, iv string) (string, error)
- func ZeroPadding(ciphertext []byte, blockSize int) []byte
- func ZeroUnPadding(origData []byte) []byte
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DesDecryptECB ¶
DES/ECB/PKCS5Padding 解密
func DesEncryptECB ¶
DES/ECB/PKCS5Padding 加密
func PKCS5Padding ¶
func PKCS5UnPadding ¶
func TripleDesDecrypt ¶
3DES解密
func TripleDesEncrypt ¶
3DES加密
func ZeroPadding ¶
func ZeroUnPadding ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.