workbench

package
v0.6.0 Latest Latest
Warning

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

Go to latest
Published: Mar 7, 2025 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)

func (*Key) Fingerprint added in v0.6.0

func (k *Key) Fingerprint() string

Fingerprint returns a string that can be used to identify this key.

The fingerprint is not appropriate for cryptographic use. It matches the hash reported in the output of the `rstudio-server encrypt-password` command.

Jump to

Keyboard shortcuts

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