Documentation
¶
Index ¶
- func Decrypt(encryptedData string, privateKey *rsa.PrivateKey) (decryptedData string, err error)
- func Encrypt(data string, publicKey *rsa.PublicKey) (encryptedData string, err error)
- func GenerateKey(bits int) (privateKey *rsa.PrivateKey, err error)
- func LoadPublicKey(pemData string) (publicKey *rsa.PublicKey, err error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Decrypt ¶
func Decrypt(encryptedData string, privateKey *rsa.PrivateKey) (decryptedData string, err error)
Decrypt decrypts the string data
func GenerateKey ¶
func GenerateKey(bits int) (privateKey *rsa.PrivateKey, err error)
GenerateKey Generates the RSA key
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.