Learn R Programming

scrypt (version 0.1.6)

hashPassword: Hash a password

Description

Hash a password

Usage

hashPassword(passwd, maxmem = 0.1, maxtime = 1)

Value

base64 encoded hash

Arguments

passwd

password to hash

maxmem

max memory percent (default 0.1)

maxtime

max cpu time (default 1.0)

See Also

verifyPassword

Examples

Run this code
# Hash password using default parameters
hashPassword('passw0rd')

# Hash password with custom parameters
hashPassword('passw0rd', maxmem=0.25, maxtime=1.0)

Run the code above in your browser using DataLab