gpg

package
v0.0.0-...-f915117 Latest Latest
Warning

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

Go to latest
Published: Oct 28, 2024 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Overview

pkg/gpg/gpg.go

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	Name       string
	Email      string
	KeyLength  int
	ExpiryDays int
}

Config holds the configuration for key generation

type Key

type Key struct {
	GPGPrivateKey string
	GPGPublicKey  string
	SSHPrivateKey string
	SSHPublicKey  string
}

Key represents a key pair

func GenerateKeys

func GenerateKeys(config *Config) (*Key, error)

GenerateKeys generates both GPG and SSH key pairs

Jump to

Keyboard shortcuts

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