keyfile

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Jul 14, 2026 License: MIT Imports: 6 Imported by: 0

Documentation

Overview

Package keyfile loads or creates private symmetric keys for local stores.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func LoadOrCreate

func LoadOrCreate(path string, size int, noun string, encoding Encoding) ([]byte, error)

LoadOrCreate reads an owner-only key or creates one atomically.

Types

type Encoding

type Encoding int
const (
	Raw Encoding = iota
	Base64
)

Jump to

Keyboard shortcuts

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