The scrypt password-based key derivation function with sync and cancellable async.
Overall
score
98%
A utility that validates and tests password-based key derivation with different cryptographic parameter configurations to ensure proper security levels.
Build a system that can derive cryptographic keys from passwords using configurable security parameters.
The system should support testing multiple parameter configurations to compare security levels.
@generates
/**
* Derives a cryptographic key from a password using specified parameters.
*
* @param {string} password - The password to derive a key from
* @param {Array<number>} salt - The cryptographic salt (array of integers 0-255)
* @param {number} N - CPU/memory cost parameter (must be power of 2)
* @param {number} r - Block size parameter
* @param {number} p - Parallelization parameter
* @param {number} dkLen - Desired key length in bytes
* @returns {Promise<Uint8Array>} The derived key
*/
async function deriveKey(password, salt, N, r, p, dkLen) {
// IMPLEMENTATION HERE
}
module.exports = {
deriveKey
};Provides password-based key derivation functionality using scrypt algorithm with internal cryptographic primitives.
@satisfied-by
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