3.5.2 Hashes of passwords
All
Application
Manual
Name
Summary
Help
Documentation
Reference manual
Packages
SWI-Prolog SSL Interface
library(crypto): Cryptography and authentication library
Hashes
Hashes of passwords
crypto_password_hash/2
crypto_password_hash/3
Availability:
:- use_module(
library(crypto)
).
(can be
autoloaded
)
[semidet]
crypto_password_hash
(
+Password, ?Hash
)
If
Hash
is instantiated, the predicate succeeds
iff
the hash matches the given password. Otherwise, the call is equivalent to
crypto_password_hash(Password, Hash, [])
and computes a password-based hash using the default options.