vault

package
v0.2.11 Latest Latest
Warning

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

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

Documentation

Overview

Package vault provides security primitives including AES-GCM encryption and TLS certificate generation.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Decrypt

func Decrypt(cipherHex string, key []byte) (string, error)

Decrypt takes the hex string and the 32-byte key to return the original text.

func Encrypt

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

Encrypt takes a plaintext string and a 32-byte key, returning an encrypted hex string.

func GenerateSelfSignedCert

func GenerateSelfSignedCert() (tls.Certificate, error)

GenerateSelfSignedCert creates a self-signed certificate for internal use.

Types

This section is empty.

Jump to

Keyboard shortcuts

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