key

package
v0.12.0 Latest Latest
Warning

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

Go to latest
Published: Apr 22, 2020 License: AGPL-3.0 Imports: 1 Imported by: 0

Documentation

Overview

Package key holds application keys and utilities around generating them.

Index

Constants

View Source
const (
	EncKeysBytes = 32
)

Variables

This section is empty.

Functions

func GenerateBytes

func GenerateBytes(n int) ([]byte, error)

GenerateBytes returns securely generated random bytes.

Types

type Keychain

type Keychain struct {
	EmailKey, CookieAuthKey, CookieKey []byte
}

func (*Keychain) GenerateKeys

func (keys *Keychain) GenerateKeys() error

GenerateKeys generates necessary keys for the app on the given Keychain, skipping any that already exist.

Jump to

Keyboard shortcuts

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