Skip to main content

Module scrypt

Module scrypt 

Source
Expand description

scrypt() of the PECL scrypt extension 2.0.1, which Utopia\Auth\Hashes\Scrypt and ScryptModified call: the scrypt KDF of RFC 7914 (Colin Percival’s crypto_scrypt), with the extension’s checks, in its order and with its messages.

PHP allocates scrypt’s working memory with the system allocator (posix_memalign and an anonymous mmap), outside memory_limit, and returns false when it cannot; so does scrypt, whose buffers are reserved fallibly.

Enums§

Failure
How scrypt() fails.

Functions§

scrypt
scrypt($password, $salt, $N, $r, $p, $keyLength, true): the raw derived key (PHP’s default output is its hex, bin2hex() of this).