encryption

package
v0.0.9 Latest Latest
Warning

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

Go to latest
Published: Aug 14, 2020 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DecryptFile

func DecryptFile(filename string, passphrase string) (data []byte, err error)

func DecryptFileDummy

func DecryptFileDummy(filename string, passphrase string) (data []byte, err error)

func EncryptFile

func EncryptFile(filename string, data []byte, passphrase string) (err error)

func EncryptFileDummy

func EncryptFileDummy(filename string, data []byte, passphrase string) (err error)

Types

type Vault

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

Vault is the inmemory encrypted storage for private keys Currently not implemented.

func NewVault

func NewVault(data []byte) *Vault

func (*Vault) Dump

func (v *Vault) Dump(filepath string, passphrase string) error

func (*Vault) Fetch

func (v *Vault) Fetch() []byte

Jump to

Keyboard shortcuts

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