Documentation
¶
Index ¶
- func MustParsePrivateKey(privateKeyBase64 string) *rsa.PrivateKey
- func MustParsePublicKey(publicKeyBase64 string) *rsa.PublicKey
- func RSADecrypt(encryptedMessage string, privateKey string) (string, error)
- func RSADecryptLongText(cipherText, privKey string) (string, error)
- func RSAEncrypt(message string, publicKey string) (string, error)
- func RSAEncryptLongText(message, pubKey string) (string, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func MustParsePrivateKey ¶
func MustParsePrivateKey(privateKeyBase64 string) *rsa.PrivateKey
func MustParsePublicKey ¶
func RSADecryptLongText ¶
分段解密函数
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.