crypto

package
v0.0.0-...-dd802b1 Latest Latest
Warning

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

Go to latest
Published: Apr 8, 2023 License: MIT Imports: 7 Imported by: 3

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Decrypt

func Decrypt(password []byte, encryptedSecrets Encrypted) ([]secret.Secret, error)

func GenerateRandomBytes

func GenerateRandomBytes(length int) []byte

Types

type Encrypted

type Encrypted struct {
	Data   string
	Nonce  string
	Salt   string
	Params map[string]int
}

func Encrypt

func Encrypt(password []byte, secrets []secret.Secret) Encrypted

Jump to

Keyboard shortcuts

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