Help us shape the future of Go! Take the 2026 Go Developer Survey

securestore

package
v0.2.1 Latest Latest
Warning

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

Go to latest
Published: Feb 13, 2026 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrInvalidKey = errors.New("invalid master key")

Functions

This section is empty.

Types

type FieldCrypto

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

FieldCrypto encrypts/decrypts fields and produces lookup hashes.

func NewFieldCrypto

func NewFieldCrypto(key []byte) (*FieldCrypto, error)

func (*FieldCrypto) DecryptString

func (c *FieldCrypto) DecryptString(encoded string) (string, error)

func (*FieldCrypto) EncryptString

func (c *FieldCrypto) EncryptString(plaintext string) (string, error)

func (*FieldCrypto) HashString

func (c *FieldCrypto) HashString(value string) string

Jump to

Keyboard shortcuts

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