workbench

package
v0.5.2 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrMissingChecksum = errors.New("payload missing embedded checksums")

Functions

This section is empty.

Types

type Key

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

func NewKeyFromBytes

func NewKeyFromBytes(src []byte) (*Key, error)

NewKeyFromBytes returns the key read from the given byte slice, or an error.

func NewKeyFromReader

func NewKeyFromReader(src io.Reader) (*Key, error)

NewKeyFromReader returns the key read from an io.Reader, or an error.

func (*Key) Decrypt

func (k *Key) Decrypt(s string) (string, error)

func (*Key) Encrypt

func (k *Key) Encrypt(s string) (string, error)

Jump to

Keyboard shortcuts

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