secrets

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Oct 30, 2026 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Hash

func Hash(raw string) string

func Token

func Token() (string, error)

Types

type Box

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

func New

func New(key []byte, purpose string) (*Box, error)

func (*Box) Open

func (b *Box) Open(raw []byte, aad string) ([]byte, error)

func (*Box) Seal

func (b *Box) Seal(raw []byte, aad string) ([]byte, error)

Jump to

Keyboard shortcuts

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