ADDED: Password-based key derivation (PBKDF2) (#509)

The new predicates crypto_password_hash/[2,3] let you store
passwords safely, and easily verify passwords later.
This commit is contained in:
Markus Triska
2020-05-15 18:49:23 +02:00
committed by GitHub
parent df06d4b9a2
commit 4e69301562
4 changed files with 223 additions and 12 deletions

View File

@@ -379,7 +379,8 @@ The modules that ship with Scryer Prolog are also called
Predicates for opening and accepting TCP connections as streams.
* [`crypto`](src/prolog/lib/crypto.pl)
Cryptographically secure random numbers and hashes, HMAC-based
key derivation (HKDF), and reasoning about elliptic curves.
key derivation (HKDF), password-based key derivation (PBKDF2),
and reasoning about elliptic curves.
To read contents of external files, use `phrase_from_file/2` from
[`library(pio)`](src/prolog/lib/pio.pl) to apply a DCG to