Documentation ¶
Index ¶
- func DecodeBase64(code string) ([]byte, error)
- func DecryptAES(src []byte, key []byte) ([]byte, error)
- func EncodeBase64(code []byte) string
- func EncryptAES(src []byte, key []byte) ([]byte, error)
- func GenerateRSAKey(bits int, privatepath, publicpath string) error
- func RSA_Decrypt(cipherText []byte, buf []byte) ([]byte, error)
- func RSA_Decrypt_Keyfile(cipherText []byte, path string) ([]byte, error)
- func RSA_Encrypt(plainText []byte, buf []byte) ([]byte, error)
- func RSA_Encrypt_Keyfile(plainText []byte, path string) ([]byte, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DecodeBase64 ¶
func EncodeBase64 ¶
func GenerateRSAKey ¶
生成RSA私钥和公钥,保存到文件中
func RSA_Decrypt_Keyfile ¶
RSA解密
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.