rsa

package
v0.0.0-...-253bb2f Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 14, 2025 License: AGPL-3.0 Imports: 8 Imported by: 0

Documentation

Index

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 Encrypt

func Encrypt(data string, publicKey *rsa.PublicKey) (encryptedData string, err error)

Encrypt enctypts the string data

func GenerateKey

func GenerateKey(bits int) (privateKey *rsa.PrivateKey, err error)

GenerateKey Generates the RSA key

func LoadPublicKey

func LoadPublicKey(pemData string) (publicKey *rsa.PublicKey, err error)

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL