crypto

package
v0.6.0 Latest Latest
Warning

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

Go to latest
Published: Apr 24, 2026 License: GPL-3.0 Imports: 3 Imported by: 0

Documentation

Overview

Package crypto provides encryption key management for mirage.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func LoadOrGenerateKey

func LoadOrGenerateKey(path string) ([]byte, error)

LoadOrGenerateKey reads a 32-byte AES-256 key from path. If the file does not exist, a new random key is generated and written with mode 0600.

Types

This section is empty.

Directories

Path Synopsis
Package aes provides AES-256-GCM authenticated encryption.
Package aes provides AES-256-GCM authenticated encryption.

Jump to

Keyboard shortcuts

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