crypto

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Jul 31, 2022 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Encrypt

func Encrypt(pass string, secret []byte) (barcode.Barcode, error)

Encrypt encrypts a secret into a barcode, using age armor as payload

func Passphrase

func Passphrase() string

Passphrase generates a human readable passphrase that is eventually used to encrypt the secret with age

func Token

func Token() string

Token generates a nonce that is used to temporary protect the server from other processes that might trigger the serving of the secret

Types

This section is empty.

Jump to

Keyboard shortcuts

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