age

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: May 3, 2025 License: BSD-3-Clause Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AgeCrypto

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

func Initialize

func Initialize(config Configuration) (*AgeCrypto, error)

func (*AgeCrypto) Decrypt

func (ac *AgeCrypto) Decrypt(data []byte) ([]byte, error)

Decrypt some bytes.

func (*AgeCrypto) Encrypt

func (ac *AgeCrypto) Encrypt(data []byte) ([]byte, error)

Encrypt some bytes.

type Configuration

type Configuration struct {
	PrivateKey string // AGE-SECRET-KEY
	PublicKey  string // age1
}

Jump to

Keyboard shortcuts

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