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

crypto

package
v1.20.0 Latest Latest
Warning

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

Go to latest
Published: Jun 4, 2026 License: BSD-3-Clause Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Decrypt

func Decrypt(ciphertext string) (string, error)

Decrypt decrypts a base64 encoded ciphertext string using AES-GCM

func Encrypt

func Encrypt(plaintext string) (string, error)

Encrypt encrypts a plaintext string using AES-GCM

func InitEncryption

func InitEncryption(cfg *Config)

InitEncryption initializes the global encryption key based on configuration

Types

type Config

type Config struct {
	EncryptionKey string
	Environment   string
	AgentMode     bool
}

Jump to

Keyboard shortcuts

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