Function testSimplePasswordHash

Tests a password hash generated using generateSimplePasswordHash.

Prototype

bool testSimplePasswordHash(
  string ,
  string ,
  string 
);

Parameters

NameDescription

hashstring

The string that was returned by a call to generateSimplePasswordHash

password

Password string to test against the hash

additional salt

The same optional salt that was given to the original call to generateSimplePasswordHash

Returns

Returns true iff the password matches the specified hash.

See Also

generateSimplePasswordHash, vibe.crypto.md5

Authors

Sönke Ludwig

Copyright

© 2012 RejectedSoftware e.K.

License

Subject to the terms of the MIT license, as written in the included LICENSE.txt file.