stack

package
v0.3.7 Latest Latest
Warning

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

Go to latest
Published: Aug 2, 2026 License: MIT Imports: 8 Imported by: 0

Documentation

Overview

Package stack implements symmetric secure:v1 encryption for recipe secrets.

Index

Constants

View Source
const SymmetricKeyBytes = 32

SymmetricKeyBytes is the AES-256 key size for secure:v1.

Variables

This section is empty.

Functions

func DecryptSymmetricV1

func DecryptSymmetricV1(key []byte, value string) (string, error)

DecryptSymmetricV1 decrypts inner form "v1:<base64-nonce>:<base64-ciphertext>".

func EncryptSymmetricV1

func EncryptSymmetricV1(key []byte, plaintext string) (string, error)

EncryptSymmetricV1 encrypts plaintext with key; inner form is v1:<nonce-b64>:<ct-b64>.

func FormatSecureRef

func FormatSecureRef(key []byte, plaintext string) (string, error)

FormatSecureRef returns a full recipe ref "secure:v1:…".

func ValidateSecureRef

func ValidateSecureRef(ref string) error

ValidateSecureRef checks recipe secret values are secure:v1:… with decodable segments.

Types

This section is empty.

Jump to

Keyboard shortcuts

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