verifyPassword: Verify a hashed password

View source: R/RcppExports.R

verifyPasswordR Documentation

Verify a hashed password

Description

Verify a hashed password

Usage

verifyPassword(hash, passwd)

Arguments

hash

base64 hash to verify

passwd

password to verify

Value

TRUE if password matches hash, otherwise FALSE

See Also

hashPassword

Examples

# Hash password using default parameters
hashed <- hashPassword("password")

# verify invalid password
verifyPassword(hashed, "bad password");

# verify correct password
verifyPassword(hashed, "password")

scrypt documentation built on Feb. 16, 2023, 6:17 p.m.