The scrypt password-based key derivation function with sync and cancellable async.
Overall
score
98%
Input validation and error handling
Imports scrypt function
100%
100%
Calls scrypt correctly
100%
100%
Validates N parameter
100%
93%
Validates integer parameters
66%
46%
Validates password format
100%
93%
Validates salt format
100%
53%
Handles scrypt errors
20%
60%
Returns proper output
100%
100%
Async/Promise handling
100%
100%
Asynchronous key derivation with Promise
Async scrypt function
100%
100%
Promise handling
100%
100%
Password encoding
100%
100%
Salt conversion
100%
100%
Correct parameters
100%
100%
Progress callback
100%
100%
Hex output conversion
100%
100%
Internal cryptographic primitives (SHA256, PBKDF2, Salsa20/8, ROMix)
scrypt function import
100%
100%
Password encoding
100%
100%
Salt handling
100%
100%
N parameter usage
100%
100%
r parameter usage
100%
100%
p parameter usage
100%
100%
dkLen parameter usage
100%
100%
Async/Promise handling
100%
100%
Return value handling
100%
100%
Derived key output as Uint8Array
scrypt function usage
100%
100%
Uint8Array return handling
100%
100%
Parameter configuration
100%
100%
Uint8Array validation
100%
100%
Uint8Array conversion
100%
100%
Memory-efficient low-level array operations
scrypt function usage
100%
100%
Correct parameters
100%
100%
Buffer/Uint8Array conversion
100%
100%
Uint8Array output handling
100%
100%
Array iteration
100%
100%
Cross-platform module support (CommonJS, AMD, browser)
scrypt function usage
100%
100%
Parameter values
100%
100%
Input conversion
100%
100%
Promise handling
100%
100%
Hex encoding output
100%
100%
CommonJS export
100%
100%
AMD export
100%
100%
Browser global export
100%
100%
Global preservation
100%
100%
Basic parameter configuration (N, r, p, dkLen)
Package Import
100%
100%
N Parameter Configuration
100%
100%
r Parameter Configuration
100%
100%
p Parameter Configuration
100%
100%
dkLen Parameter
100%
100%
Password Input Format
100%
100%
Salt Input Format
100%
100%
Security Level Mapping
100%
100%
Synchronous key derivation
Import syncScrypt
100%
100%
Call syncScrypt function
100%
100%
Pass password parameter
100%
100%
Pass salt parameter
100%
100%
Pass N parameter
100%
100%
Pass r parameter
100%
100%
Pass p parameter
100%
100%
Pass dkLen parameter
100%
100%
Return Uint8Array
80%
100%
State machine architecture for incremental computation
Uses scrypt() function
100%
100%
Passes progress callback
100%
100%
Handles password encoding
100%
100%
Correct parameter passing
100%
100%
Returns Promise
100%
100%
Forwards progress values
100%
100%
Unicode normalization and encoding handling
Unicode normalization applied
100%
100%
Correct string encoding
100%
100%
Uses syncScrypt function
100%
100%
Appropriate parameter values
100%
100%
Hex encoding output
100%
100%
Install with Tessl CLI
npx tessl i tessl/npm-scrypt-jsTable of Contents