The scrypt password-based key derivation function with sync and cancellable async.
Overall
score
98%
Build a system that derives encryption keys from user passwords using a cryptographic key derivation function. The system must operate asynchronously and provide progress feedback during key generation.
Implement a key derivation module that:
Implement a function deriveKey(password, salt, progressCallback) that:
Create the following files:
keyDerivation.js - Main implementation with the deriveKey functionkeyDerivation.test.js - Test file containing the test casesInput:
Expected behavior:
Input:
Expected behavior:
Input:
Expected behavior:
Provides password-based key derivation functionality.
Install with Tessl CLI
npx tessl i tessl/npm-scrypt-jsdocs
evals
scenario-1
scenario-2
scenario-3
scenario-4
scenario-5
scenario-6
scenario-7
scenario-8
scenario-9
scenario-10