CtrlK
BlogDocsLog inGet started
Tessl Logo

tessl/npm-crypto-browserify

Browser-compatible implementation of Node.js crypto module providing cryptographic operations in web environments.

Overall
score

100%

Overview
Eval results
Files

rubric.jsonevals/scenario-2/

{
  "context": "This criteria evaluates how well the engineer uses crypto-browserify's digital signature functionality (createSign and Sign class) to implement document signing. The focus is on correct API usage, proper streaming data handling, and output encoding management.",
  "type": "weighted_checklist",
  "checklist": [
    {
      "name": "Uses createSign",
      "description": "The implementation uses crypto.createSign() or the Sign constructor to create signing objects with the 'RSA-SHA256' algorithm",
      "max_score": 25
    },
    {
      "name": "Uses update method",
      "description": "The implementation uses the update() method on Sign objects to add data to be signed (either single call or multiple calls for chunks)",
      "max_score": 25
    },
    {
      "name": "Uses sign method",
      "description": "The implementation uses the sign() method on Sign objects with the private key to generate the signature",
      "max_score": 25
    },
    {
      "name": "Handles output encoding",
      "description": "The implementation correctly specifies output encoding ('hex' or 'base64') when calling sign() method to return signatures in the requested format",
      "max_score": 15
    },
    {
      "name": "Implements streaming correctly",
      "description": "The signChunks function correctly calls update() multiple times (once per chunk) on the same Sign object before calling sign(), demonstrating proper understanding of streaming/incremental data processing",
      "max_score": 10
    }
  ]
}

Install with Tessl CLI

npx tessl i tessl/npm-crypto-browserify

tile.json