age_encryption

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Mar 3, 2024 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GenerateNewKeyPair

func GenerateNewKeyPair() (string, string)

GenerateNewKeyPair returns publicKey, privateKey (order of returns)

Types

type Age

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

func GenerateNewAgeCredentials

func GenerateNewAgeCredentials() Age

func NewAge

func NewAge(privKey, pubKey string) Age

func (*Age) Decrypt

func (a *Age) Decrypt(p *filepaths.Path) error

func (*Age) DecryptAndUnGzipToInMemFs

func (a *Age) DecryptAndUnGzipToInMemFs(p *filepaths.Path, fs memfs.MemFS, unzipDir string) error

func (*Age) DecryptToMemFsFile

func (a *Age) DecryptToMemFsFile(p *filepaths.Path, fs memfs.MemFS) error

func (*Age) Encrypt

func (a *Age) Encrypt(p *filepaths.Path) error

func (*Age) EncryptFromInMemFS

func (a *Age) EncryptFromInMemFS(inMemFs memfs.MemFS, p *filepaths.Path) error

func (*Age) GzipAndEncrypt

func (a *Age) GzipAndEncrypt(p *filepaths.Path) error

func (*Age) UnGzipAndDecrypt

func (a *Age) UnGzipAndDecrypt(p *filepaths.Path) error

Jump to

Keyboard shortcuts

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