crypt: Create crypted passwords

Description Usage Arguments Examples

Description

WeBWorK passwords must be crypted with a 1-way hash. 'crypt()' is a wrapper around the suggested perl code for performing the crypting.

Usage

1
crypt(plaintext, salt = NULL)

Arguments

plaintext

Plain text to be hashed

salt

A two-character string used as "salt" for the hash. If 'NULL', salt is randomly generated.

Examples

1
2
3
4
crypt("plaintext")
crypt("plaintext", salt = "N7")
crypt("plaintext", salt = "Xa")
crypt(LETTERS)

rpruim/webwork documentation built on May 14, 2019, 5:20 p.m.