password

package
v0.0.0-...-8b8ac75 Latest Latest
Warning

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

Go to latest
Published: Jul 24, 2022 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

View Source
const DefaultAlgorithm = Algorithm_Argon2id

BEGIN Default Algorithm

View Source
const DefaultSaltSize = 32

BEGIN DefaltSaltSize

Variables

View Source
var Algorithms []Algorithm

Functions

func GetSalt

func GetSalt() ([]byte, string)

Types

type AlgID

type AlgID uint32
const (
	Algorithm_Argon2id AlgID = iota
	Algorithm_Argon2i
	Algorithm_PBKDF2_SHA256
)

type Algorithm

type Algorithm struct {
	Hasher   func(data, salt []byte) []byte
	Verifier func(data, salt []byte, hash []byte) bool
}

Jump to

Keyboard shortcuts

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