keyfile

package
v0.18.0 Latest Latest
Warning

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

Go to latest
Published: Jun 23, 2026 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Protector

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

func NewProtector

func NewProtector(keyfile string) (*Protector, error)

func (*Protector) Decrypt

func (p *Protector) Decrypt(data []byte, name string) ([]byte, error)

Decrypt will decrypt provided data using the keyfile. In this case name is ignored

func (*Protector) Encrypt

func (p *Protector) Encrypt(data []byte, name string) ([]byte, error)

Encrypt will encrypt provided data using the the keyfile. In this case name is ignored

Jump to

Keyboard shortcuts

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