Documentation
¶
Overview ¶
Package mpencrypt aes User: 姜伟 Time: 2020-02-19 06:27:35
Package mpencrypt rsa User: 姜伟 Time: 2020-02-19 06:29:32
Index ¶
- func AesDecryptCBC(encrypted, key []byte) []byte
- func AesDecryptCBCPKCS7(cipherData, aesKey []byte) ([]byte, error)
- func AesDecryptCFB(encrypted []byte, key []byte) []byte
- func AesDecryptECB(encrypted []byte, key []byte) []byte
- func AesEncryptCBC(origData, key []byte) []byte
- func AesEncryptCBCPKCS7(plainData, aesKey []byte) ([]byte, error)
- func AesEncryptCFB(origData []byte, key []byte) []byte
- func AesEncryptECB(origData []byte, key []byte) []byte
- func AesPaddingPKCS7(cipherText []byte, blockSize int) []byte
- func AesUnPaddingPKCS7(origData []byte) []byte
- func RsaDecrypt(encryptData []byte, privateKey []byte) ([]byte, error)
- func RsaEncrypt(originData []byte, publicKey []byte) ([]byte, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AesDecryptCBCPKCS7 ¶
AesDecryptCBCPKCS7 AesDecryptCBCPKCS7
func AesDecryptCFB ¶
AesDecryptCFB AesDecryptCFB
func AesDecryptECB ¶
AesDecryptECB AesDecryptECB
func AesEncryptCBCPKCS7 ¶
AesEncryptCBCPKCS7 AesEncryptCBCPKCS7
func AesEncryptCFB ¶
AesEncryptCFB AesEncryptCFB
func AesEncryptECB ¶
AesEncryptECB AesEncryptECB
func AesPaddingPKCS7 ¶
AesPaddingPKCS7 AesPaddingPKCS7
func AesUnPaddingPKCS7 ¶
AesUnPaddingPKCS7 AesUnPaddingPKCS7
func RsaDecrypt ¶
RsaDecrypt 解密 encryptData []byte 加密数据 privateKey []byte 私钥,私钥文件内容,包含-----BEGIN RSA PRIVATE KEY-----和-----END RSA PRIVATE KEY-----
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.