Documentation
¶
Index ¶
- func AESEncryptStreamReader(key []byte, dst io.Writer, src io.Reader) (int64, error)
- func AESEncryptStreamWriter(key []byte, dst io.Writer, src io.Reader) (int64, error)
- func DESDecrypt(cipherText []byte) []byte
- func DESEncrypt(plaintext []byte) []byte
- func DESGroupFill(plaintext []byte) []byte
- func GenerateRSAKey(bits int) (privateKey, publicKey string, err error)
- func RSADecrypt(cipherText []byte, privateKey string) ([]byte, error)
- func RSADecryptBase64(cipherText string, privateKey string) ([]byte, error)
- func RSADecryptHex(cipherText string, privateKey string) ([]byte, error)
- func RSAEncrypt(plainText []byte, publicKey string) ([]byte, error)
- func RSAEncryptBase64(plainText []byte, publicKey string) (string, error)
- func RSAEncryptHex(plainText []byte, publicKey string) (string, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AESEncryptStreamReader ¶
AESEncryptStreamReader 对文件流进行AES解密
func AESEncryptStreamWriter ¶
AESEncryptStreamWriter 对文件流进行AES加密
func DESGroupFill ¶
func GenerateRSAKey ¶
func RSADecrypt ¶
RSADecrypt RSA解密
func RSADecryptBase64 ¶
RSADecryptBase64 RSA解密-Base64
func RSADecryptHex ¶
RSADecryptHex RSA解密-Hex
func RSAEncrypt ¶
RSAEncrypt RSA加密
func RSAEncryptBase64 ¶
RSAEncryptBase64 RSA加密-Base64
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.