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

aesgcm

package
v0.26.2 Latest Latest
Warning

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

Go to latest
Published: Oct 24, 2026 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Overview

Package aesgcm is the V1 at-rest secrets encryptor (ADR-0022): an AES-256-GCM store.Encryptor that fills the ADR-0006 seam. Each Encrypt uses a fresh random nonce prepended to the ciphertext; Decrypt authenticates (GCM) and fails on tamper. Stdlib AEAD only — the envelope/KMS/OpenBAO production drivers swap in behind store.Encryptor.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewAESEncryptor

func NewAESEncryptor(key []byte) (store.Encryptor, error)

NewAESEncryptor returns an AES-256-GCM store.Encryptor. key must be exactly 32 bytes (a misconfigured key must not silently weaken crypto).

Types

This section is empty.

Jump to

Keyboard shortcuts

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