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-6/

{
  "context": "This criteria evaluates how well the engineer utilizes crypto-browserify's predefined Diffie-Hellman groups for secure key exchange. The focus is on using standardized MODP groups through the appropriate package APIs rather than generating custom cryptographic parameters.",
  "type": "weighted_checklist",
  "checklist": [
    {
      "name": "Uses predefined groups",
      "description": "Implementation uses getDiffieHellman() or createDiffieHellmanGroup() to create instances with standardized MODP group names (e.g., 'modp5', 'modp14') rather than createDiffieHellman() with custom parameters",
      "max_score": 35
    },
    {
      "name": "Generates key pairs",
      "description": "Calls generateKeys() method on the Diffie-Hellman instance to create public/private key pairs",
      "max_score": 15
    },
    {
      "name": "Retrieves public keys",
      "description": "Uses getPublicKey() method with appropriate encoding (e.g., 'hex') to export public keys for exchange",
      "max_score": 15
    },
    {
      "name": "Computes shared secret",
      "description": "Uses computeSecret() method with the other party's public key and appropriate encodings to derive the shared secret",
      "max_score": 25
    },
    {
      "name": "Handles multiple groups",
      "description": "Implementation correctly supports different predefined group names (e.g., 'modp5', 'modp14') as specified in the requirements",
      "max_score": 10
    }
  ]
}

Install with Tessl CLI

npx tessl i tessl/npm-crypto-browserify

tile.json