pepper

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Jan 16, 2026 License: MIT Imports: 4 Imported by: 0

Documentation

Overview

Package pepper provides helpers for obtaining and persisting a secret "pepper" value.

The pepper is stored in the system keyring and is used as an additional secret when hashing or deriving cache keys. If the value is missing, the user is prompted on stdin and the result is saved to the keyring.

Index

Constants

This section is empty.

Variables

View Source
var ErrPepperNotSet = errors.New("pepper not set in keyring")

Functions

func GetPepper

func GetPepper() (string, error)

func PepperExists

func PepperExists() (bool, error)

func SetPepper

func SetPepper(pepper string) error

Types

This section is empty.

Jump to

Keyboard shortcuts

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