keys

package
v0.0.0-...-fba1e97 Latest Latest
Warning

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

Go to latest
Published: Apr 20, 2024 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

View Source
const (
	Iter    = 500000 // Iteration count
	KeyLen  = 32     // AES 256 - 32 bytes
	SaltLen = 64     // Salt length
)

Variables

This section is empty.

Functions

func GenKey

func GenKey(pass, salt []byte) *key

Key constructor. Returns key struct with the given salt

func NewKey

func NewKey(pass []byte) (*key, error)

Key constructor. Returns a key struct with a random salt

Types

This section is empty.

Jump to

Keyboard shortcuts

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