Documentation ¶
Index ¶
- func AESDecrypt(key string, value string) (string, error)
- func AESEncrypt(key string, value string) (string, error)
- func GenerateAESKey() string
- func GenerateRSAKey() ([]byte, []byte, error)
- func GenerateRSAKeyBase64() (string, string, error)
- func GenerateRSAKeyFile(privateKeyFile string, publicKeyFile string) error
- func RSADecrypt(privateKey string, value string) (string, error)
- func RSAEncrypt(publicKey string, value string) (string, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GenerateRSAKeyBase64 ¶
GenerateRSAKeyBase64 生成RSA公钥和私钥
func GenerateRSAKeyFile ¶ added in v0.2.2
GenerateRSAKeyFile 生成RSA公钥和私钥
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.