secrets

package
v1.1.1 Latest Latest
Warning

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

Go to latest
Published: Nov 25, 2025 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AesCrypt added in v1.1.0

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

func NewAesCrypt added in v1.1.0

func NewAesCrypt(key []byte) (*AesCrypt, error)

func (*AesCrypt) DecryptValue added in v1.1.0

func (c *AesCrypt) DecryptValue(v string) (string, error)

func (*AesCrypt) EncryptValue added in v1.1.0

func (c *AesCrypt) EncryptValue(v string) (string, error)

type AgeCrypt

type AgeCrypt struct {
	*age.X25519Identity
}

func NewAgeCrypt

func NewAgeCrypt() (*AgeCrypt, error)

func NewAgeCryptFromString

func NewAgeCryptFromString(s string) (*AgeCrypt, error)

func (*AgeCrypt) Decrypt

func (c *AgeCrypt) Decrypt(data string) (string, error)

func (*AgeCrypt) DecryptValue

func (c *AgeCrypt) DecryptValue(v string) (string, error)

func (*AgeCrypt) Encrypt

func (c *AgeCrypt) Encrypt(data string) (string, error)

func (*AgeCrypt) EncryptValue

func (c *AgeCrypt) EncryptValue(v string) (string, error)

type Secrets added in v1.1.0

type Secrets interface {
	EncryptValue(v string) (string, error)
	DecryptValue(v string) (string, error)
}

Jump to

Keyboard shortcuts

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