passwd_helper

package
v1.2.15 Latest Latest
Warning

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

Go to latest
Published: Aug 8, 2022 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	PBKDF2_RAND_LETTERS []byte
	PBKDF2_SEPARATOR    = "$"
	PBKDF2_TAG          = "PBKDF2"
	PBKDF2_ALGORITHM    = "sha256"
	PBKDF2_ITERATIONS   = 901
	PBKDF2_KEY_LENGTH   = 48
	PBKDF2_SALT_LENGTH  = 12
)

Functions

func MustParseHmac

func MustParseHmac(key, id string, timestamp time.Time, nonce int64) string

func MustParsePassword

func MustParsePassword(x string) string

func MustParsePbkdf2 added in v1.0.0

func MustParsePbkdf2(passwd string) string

func ValidateHmac

func ValidateHmac(hash, key, id string, timestamp time.Time, nonce int64) bool

func ValidatePassword

func ValidatePassword(hash, passwd string) bool

Types

This section is empty.

Jump to

Keyboard shortcuts

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