sodium_crypto_pwhash_scryptsalsa208sha256
(PHP 7 >= 7.2.0, PHP 8)
sodium_crypto_pwhash_scryptsalsa208sha256 — Derives a key from a password, using scrypt
Description
This is the scrypt counterpart to sodium_crypto_pwhash().
A common reason to use this particular function is to derive the seeds for cryptographic keys from a password and salt,
and then use these seeds to generate the actual keys needed for some purpose (e.g. sodium_crypto_sign_detached()).
Return Values
A string of bytes of the desired length.