security.BCrypt.CheckPassword

Checks the hash password.

Syntax

security.BCrypt.CheckPassword(
   password STRING,
   hashedPass STRING )
  RETURNS  INTEGER
  1. password defines the password to hash. The password is limited to 72 bytes.
  2. hashedPass defines the hash password created by the HassPassword method.

Usage

The method returns TRUE, the hashed password is valid.

In case of error, the method throws an exception and sets the STATUS variable. Depending on the error, a human-readable description of the problem is available in the SQLCA.SQLERRM register. See Error handling in GWS calls (STATUS).

For an example using BCrypt methods, see Example: Using security.BCrypt methods.