pgp

package
v0.4.1 Latest Latest
Warning

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

Go to latest
Published: Mar 26, 2023 License: GPL-3.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

View Source
const (
	PublicFilename  = "public.pgp"
	PrivateFilename = "private.pgp"
)
View Source
const (
	DefaultRSAKeyBits = 4096
)

Variables

This section is empty.

Functions

This section is empty.

Types

type PGP

type PGP struct {
	// contains filtered or unexported fields
}

func NewPGP

func NewPGP() *PGP

func (*PGP) Generate

func (v *PGP) Generate(out string, name, comment, email string) error

func (*PGP) GetPublic added in v0.2.0

func (v *PGP) GetPublic() ([]byte, error)

func (*PGP) GetPublicBase64 added in v0.2.0

func (v *PGP) GetPublicBase64() ([]byte, error)

func (*PGP) LoadPrivateKey

func (v *PGP) LoadPrivateKey(r io.ReadSeeker, passwd string) error

func (*PGP) Sign

func (v *PGP) Sign(in io.Reader, out io.Writer) error

Jump to

Keyboard shortcuts

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