PasswordVerify

From Multi Theft Auto: Wiki
Revision as of 21:35, 16 April 2017 by Qaisjp (talk | contribs) (Created page with "__NOTOC__ {{Shared function}} {{Note box|Using '''passwordHash''' is the recommended way of storing passwords.}} {{New feature/item|3.0154|1.5.4|11277| This function verifies...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

This template is no longer in use as it results in poor readability. This function verifies whether a password matches a password hash.

Syntax

bool passwordVerify ( string password, string hash )  

Required Arguments

  • password: The password to check.
  • hash: A supported hash (see passwordHash)

Returns

Returns true if the password matches the hash. Returns false if the password does not match, or if an unknown hash was passed.

Example

Accessories-text-editor.png Script Example Missing Function PasswordVerify needs a script example, help out by writing one.

Before submitting check out Editing Guidelines Script Examples.
-- TODO


See Also