996 B
996 B
Scrypt Key Verification
Verifies a password against a previously derived Scrypt key.
Source library: cryptography
Overview
This node is the counterpart to Scrypt Key Derivation. It takes a password and the original derivation parameters (salt, n, r, p) and checks if they produce the expected key. This is the standard way to verify user passwords hashed with Scrypt.
Parameters
- message: The input password or message to verify, as a
BYTESLIKEobject. - expected_key: The
BYTESLIKEkey to check against. - length: The length of the derived key in bytes. Must match the original derivation.
- salt: The original
BYTESLIKEsalt used for derivation. - n: The original CPU/Memory cost parameter (as a power-of-2 exponent).
- r: The original block size parameter.
- p: The original parallelization parameter.
Outputs
- verified_status: A
BOOLEANthat isTrueif the password hashes to the expected key, andFalseotherwise.