global

package
v0.0.0-...-1c520d6 Latest Latest
Warning

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

Go to latest
Published: May 31, 2021 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

View Source
const (
	HashLength       = 32
	SaltLength       = 16
	Argon2Time       = 1
	Argon2Threads    = 4
	Argon2Memory     = 64 * 1024
	MagicBytesLength = 2

	OutFileSuffix = ".crypt"
)

Variables

View Source
var (
	MagicBytes           = [MagicBytesLength]byte{0xDC, 0x00}
	MagicBytesCompressed = [MagicBytesLength]byte{0xDC, 0x01}

	ErrNoMagicBytes  = errors.New("Magic bytes are wrong or missing")
	ErrWrongPassword = errors.New("Wrong password")
)

Functions

func EPrintf

func EPrintf(format string, a ...interface{}) (int, error)

func MakeHash

func MakeHash(plainText []byte, salt []byte) []byte

Types

This section is empty.

Jump to

Keyboard shortcuts

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