crypto

package
v1.2.7 Latest Latest
Warning

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

Go to latest
Published: Sep 2, 2023 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func RandomInt

func RandomInt(max int) int

Types

type Config

type Config struct {
	BinaryPath string
	Args       []string
}

type GPG

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

func New

func New(id string, config Config) *GPG

func (*GPG) Args

func (g *GPG) Args() []string

func (*GPG) Binary

func (g *GPG) Binary() string

func (*GPG) Decrypt

func (g *GPG) Decrypt(ciphertext []byte) ([]byte, error)

func (*GPG) Encrypt

func (g *GPG) Encrypt(plaintext []byte) ([]byte, error)

func (*GPG) ID

func (g *GPG) ID() string

Jump to

Keyboard shortcuts

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