Documentation ¶
Overview ¶
package crypto DES和3DES加解密
Index ¶
- func AES256CBCPKCS0Decrypt(src []byte, iv []byte, key []byte) ([]byte, error)
- func AES256CBCPKCS0Encrypt(src []byte, iv []byte, key []byte) ([]byte, error)
- func AESDecrypt(src, key []byte) ([]byte, error)
- func AESEncrypt(src, key []byte) ([]byte, error)
- func DESCBCPCSK5Decrypt(key []byte, ciphertext []byte) ([]byte, error)
- func DESCBCPCSK5Encrypt(key []byte, plaintext []byte) ([]byte, error)
- func PKCSPadding(ciphertext []byte, blockSize int) []byte
- func PKCSUnPadding(origData []byte) []byte
- func TripleDesECBDecrypt(crypted []byte, key string) ([]byte, error)
- func TripleDesECBEncrypt(origData []byte, key string) ([]byte, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AES256CBCPKCS0Decrypt ¶
func AES256CBCPKCS0Encrypt ¶
func AESDecrypt ¶
AESDecrypt AES解密 初始向量16字节空 PKCS5 CBC 入参:src 已加密[]byte key:密钥[]byte 16/24/32 返回:解密后[]byte
func AESEncrypt ¶
AESEncrypt AES加密 初始向量16字节空 PKCS5 CBC 入参:src 待加密[]byte key:密钥[]byte 16/24/32 返回:加密后[]byte
func PKCSPadding ¶
func PKCSUnPadding ¶
func TripleDesECBDecrypt ¶
TripleDesECBDecrypt 3des解密
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.