pgp

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Dec 31, 2023 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ExtractKeyID

func ExtractKeyID(pubKeyPath string) (string, error)

ExtractKeyID extracts the key ID from a PGP public key file.

func GeneratePGPKeys

func GeneratePGPKeys(name, email, pubKeyPath, privKeyPath string) error

GeneratePGPKeys generates a PGP public and private key pair and saves them to the given file paths.

func ImportPublicKey

func ImportPublicKey(pubKeyPath, privKeyPath string) error

ImportPublicKey imports a PGP public key into the GnuPG keyring.

Types

This section is empty.

Jump to

Keyboard shortcuts

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