crypto

package
v0.0.0-...-d6130bf Latest Latest
Warning

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

Go to latest
Published: Jun 20, 2024 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DecryptData

func DecryptData(ciphertext []byte) ([]byte, error)

DecryptData decrypts the input data using the RSA private key

func EncryptData

func EncryptData(data []byte) ([]byte, error)

EncryptData encrypts the input data using the RSA public key

func GenerateRSAKey

func GenerateRSAKey(keySize int) error

GenerateRSAKey generates an RSA key of the specified size (in bits)

func GetPublicKey

func GetPublicKey() ([]byte, error)

GetPublicKey returns the generated RSA public key

Types

This section is empty.

Jump to

Keyboard shortcuts

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