rsa

package
v0.0.0-...-c7a1919 Latest Latest
Warning

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

Go to latest
Published: Mar 13, 2024 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateKeyPair

func CreateKeyPair() (*rsa.PrivateKey, error)

func ParsePrivateKeyFromFile

func ParsePrivateKeyFromFile(path string) (*rsa.PrivateKey, error)

func ParsePublicKeyFromFile

func ParsePublicKeyFromFile(path string) (*rsa.PublicKey, error)

func SaveKeyPairToFile

func SaveKeyPairToFile(privateKey *rsa.PrivateKey)

Types

type KeyPair

type KeyPair struct {
	PublicKey  PublicKey
	PrivateKey PrivateKey
}

type PrivateKey

type PrivateKey string

type PublicKey

type PublicKey string

Jump to

Keyboard shortcuts

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