f$Password_Check
f$Password_Check
Verify that an entered password matches the encryption of a saved password. The function requires the password, the hash code, and the salt generated during encryption. If a number of iterations has been specified, it must also be included in the test.
Syntax: | Status = f$Password_Check ( PGName ) | ||
| Argument | Typ | Bedeutung |
| PGName | string | Name of a parameter group of kind tdv: passwordhash. The parameter group contains the following Parameters: Input: Passwort(string) : the Password itself Hash (string) : the generated Hash Salt (string) : the generated Salt Iterations (integer) : Count of Iterations. If this parameter is empty, 64000 Iterations are used. Output: Check (integer) : 1 – the password is ok, else 0 |
Result: | Integer | Status of the Function. 0 means all is ok. –1, if the used eposvbcomexe could not be started | |
Sample: | PWD.Passwort = 'test_pass#wort' PWD.Salt='UHuuq0roHUk+W521OWrw5LAxv7I=' PWD.Hash='g6RDISseIndXIlyFIP5WJm5SMfo=' Status = f$passwort_check('PWD') Result: PWD.Check = 1 | ||