Learn R Programming

scrypt (version 0.1.6)

verifyPassword: Verify a hashed password

Description

Verify a hashed password

Usage

verifyPassword(hash, passwd)

Value

TRUE if password matches hash, otherwise FALSE

Arguments

hash

base64 hash to verify

passwd

password to verify

See Also

hashPassword

Examples

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

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

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

Run the code above in your browser using DataLab