lockandload

package
v1.0.8 Latest Latest
Warning

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

Go to latest
Published: Mar 26, 2024 License: MPL-2.0 Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type SecureFile

type SecureFile struct {
	File   string
	Key    string
	Locked bool
	// contains filtered or unexported fields
}

func NewSecureFile

func NewSecureFile(file, key string) (SecureFile, error)

NewSecureFile takes a file and optional key arg

func (*SecureFile) Decrypt

func (l *SecureFile) Decrypt() error

SecureFile Decrypt

func (*SecureFile) Encrypt

func (l *SecureFile) Encrypt() error

SecureFile Encrypt

func (*SecureFile) Load

func (l *SecureFile) Load() (io.Reader, error)

SecureFile Load loads the secure file as a io.Reader

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL
JackTT - Gopher 🇻🇳