encryption

package
v1.0.1 Latest Latest
Warning

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

Go to latest
Published: Oct 4, 2023 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CheckForGPG

func CheckForGPG() error

Types

type GPG

type GPG struct {
	FilePath string
	Password string
}

func (GPG) DecryptFromFileIntoMemory

func (g GPG) DecryptFromFileIntoMemory() ([]byte, error)

TODO: Return better errors when the password is invalid.

func (GPG) EncryptFromMemoryIntoFile

func (g GPG) EncryptFromMemoryIntoFile(data []byte) error

Jump to

Keyboard shortcuts

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