verifyPassword {scrypt}R 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")

[Package scrypt version 0.1.6 Index]