crypto

package
v0.0.0-...-71eb26a Latest Latest
Warning

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

Go to latest
Published: Jun 24, 2023 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

View Source
const (
	PrivateKeyPath = "private.pem"
	PublicKeyPath  = "public.pem"
)

Variables

This section is empty.

Functions

func DecryptFile

func DecryptFile(filename string, privateKey *rsa.PrivateKey) error

func EncryptFile

func EncryptFile(filename string, publicKey *rsa.PublicKey) error

func GenerateKeyPair

func GenerateKeyPair(bits int) error

func LoadPrivateKey

func LoadPrivateKey(filename string) (*rsa.PrivateKey, error)

func LoadPublicKey

func LoadPublicKey(filename string) (*rsa.PublicKey, error)

Types

This section is empty.

Jump to

Keyboard shortcuts

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