Validates a password against the expected salted password hash, using the proper hash algorithm (SHA512 or MD5).

Input parameters

PlainTextPassword: mandatory; Text type.
The password in plain text.

SaltedHashedPassword: mandatory; Text type.
The expected salted password hash.

Output parameters

IsValid: Boolean type.
Returns true if the password matches the given salted password hash.

Example

Usage

Result

ValidatePassword("Christina Sharp","$1$rrnuD7wXF0g8mN

pET/zBJwN8xix8ZDyp6zqHEntoxkg=76DDDC127A9676FE52B29F0

58B98923391D5A8B66BD7702F6EAA68C2E90DFD2C9A1C8E558CFD

220B565DB836CE76E12537E813D30566F67320A18B9144271330")

True

ValidatePassword("Christina Sharp","George Walker")

False

See Also

Overview of the PlatformPasswordUtils API