Documentation ¶
Index ¶
- func DecryptCBC(msg string, key string, iv string) (string, error)
- func DecryptECB(msg string, key string) (string, error)
- func EncryptCBC(msg string, key string, iv string) (string, error)
- func EncryptECB(msg string, key string) (string, error)
- func PKCS5Padding(ciphertext []byte, blockSize int) []byte
- func PKCS5UnPadding(origData []byte) ([]byte, error)
- func TripleDecrypt(msg string, key string, iv string) (string, error)
- func TripleEncrypt(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 DecryptCBC ¶
DecryptCBC DES/CBC/PKCS5Padding 解密
func DecryptECB ¶
DecryptECB DES/ECB/PKCS5Padding
func EncryptCBC ¶
EncryptCBC DES/CBC/PKCS5Padding 加密
func EncryptECB ¶
EncryptECB DES/ECB/PKCS5Padding
func PKCS5Padding ¶
func PKCS5UnPadding ¶
func TripleDecrypt ¶
TripleDecrypt 3DES解密
func TripleEncrypt ¶
TripleEncrypt 3DES加密
func ZeroPadding ¶
func ZeroUnPadding ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.