passhash9

package
v1.0.5006 Latest Latest
Warning

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

Go to latest
Published: Dec 20, 2024 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

View Source
const ALGID_BYTES = 1
View Source
const MAGIC_PREFIX = "$9$"
View Source
const PASSHASH9_PBKDF_OUTPUT_LEN = 24 // 192 bits output
View Source
const SALT_BYTES = 12 // 96 bits of salt
View Source
const WORKFACTOR_BYTES = 2
View Source
const WORK_FACTOR_SCALE = 10000

Variables

This section is empty.

Functions

func CompareHash

func CompareHash(pass string, hash string) bool

func GenerateHash

func GenerateHash(
	rand io.Reader,
	pass string,
	workFactor uint16,
	algId int,
) string

func GetPbkdfPRF

func GetPbkdfPRF(algId int) pbkdf2.PRF

func IsAlgSupported

func IsAlgSupported(algId int) bool

Types

This section is empty.

Jump to

Keyboard shortcuts

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