CreateWebHarePasswordHash (open)

Hash a password

Syntax

LOADLIB "wh::crypto.whlib";

STRING FUNCTION CreateWebHarePasswordHash(STRING pwd)

Parameters

STRING pwd

Password to hash

Return value

STRING

The hashed password string. Note that this string may contain binary bytes and thus may not be valid UTF8

Description

This hashes using the current recommended algorithm and can be stored anywhere 8-bit data is accepted. It currently uses 10-iteration crypt_blowfish algorithm.