CtrlK
BlogDocsLog inGet started
Tessl Logo

tessl/npm-scrypt-js

The scrypt password-based key derivation function with sync and cancellable async.

Overall
score

98%

Overview
Eval results
Files

Evaluation results

79%

-8%

Password Key Derivation Validator

Input validation and error handling

Criteria
Without context
With context

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%

100%

Password Key Derivation System

Asynchronous key derivation with Promise

Criteria
Without context
With context

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%

100%

Password Derivation Parameter Validator

Internal cryptographic primitives (SHA256, PBKDF2, Salsa20/8, ROMix)

Criteria
Without context
With context

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%

100%

Password-Based Key Storage System

Derived key output as Uint8Array

Criteria
Without context
With context

scrypt function usage

100%

100%

Uint8Array return handling

100%

100%

Parameter configuration

100%

100%

Uint8Array validation

100%

100%

Uint8Array conversion

100%

100%

100%

Batch Password Derivation Utility

Memory-efficient low-level array operations

Criteria
Without context
With context

scrypt function usage

100%

100%

Correct parameters

100%

100%

Buffer/Uint8Array conversion

100%

100%

Uint8Array output handling

100%

100%

Array iteration

100%

100%

100%

Universal Password Hasher

Cross-platform module support (CommonJS, AMD, browser)

Criteria
Without context
With context

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%

100%

Password Key Derivation Service

Basic parameter configuration (N, r, p, dkLen)

Criteria
Without context
With context

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%

100%

1%

Password-Based Key Derivation Service

Synchronous key derivation

Criteria
Without context
With context

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%

100%

Password Key Derivation with Progress Tracking

State machine architecture for incremental computation

Criteria
Without context
With context

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%

100%

Password Key Derivation with Unicode Support

Unicode normalization and encoding handling

Criteria
Without context
With context

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-js
Evaluated
Agent
Codex

Table of Contents