CtrlK
CommunityDocumentationLog inGet started
Tessl Logo

tessl/npm-crypto-browserify

tessl install tessl/npm-crypto-browserify@3.12.0

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

Agent Success

Agent success rate when using this tile

100%

Improvement

Agent success rate improvement when using this tile compared to baseline

1x

Baseline

Agent success rate without this tile

100%

task.mdevals/scenario-2/

Cryptographic Algorithm Reporter

A utility tool that reports available cryptographic algorithms in the browser environment.

Capabilities

Algorithm Discovery

  • It retrieves all available hash algorithms from the crypto library and returns them as a sorted array. @test
  • It retrieves all available cipher algorithms from the crypto library and returns them as a sorted array. @test

Algorithm Validation

  • It checks if a given hash algorithm name exists in the available hash algorithms, returning true if found and false otherwise. @test
  • It checks if a given cipher algorithm name exists in the available cipher algorithms, returning true if found and false otherwise. @test

Implementation

@generates

API

/**
 * Returns a sorted array of all available hash algorithm names.
 *
 * @returns {string[]} Array of hash algorithm names, sorted alphabetically
 */
function getAvailableHashes() {
  // IMPLEMENTATION HERE
}

/**
 * Returns a sorted array of all available cipher algorithm names.
 *
 * @returns {string[]} Array of cipher algorithm names, sorted alphabetically
 */
function getAvailableCiphers() {
  // IMPLEMENTATION HERE
}

/**
 * Checks if a hash algorithm is available.
 *
 * @param {string} algorithm - The hash algorithm name to check
 * @returns {boolean} true if the algorithm is available, false otherwise
 */
function isHashSupported(algorithm) {
  // IMPLEMENTATION HERE
}

/**
 * Checks if a cipher algorithm is available.
 *
 * @param {string} algorithm - The cipher algorithm name to check
 * @returns {boolean} true if the algorithm is available, false otherwise
 */
function isCipherSupported(algorithm) {
  // IMPLEMENTATION HERE
}

module.exports = {
  getAvailableHashes,
  getAvailableCiphers,
  isHashSupported,
  isCipherSupported,
};

Dependencies { .dependencies }

crypto-browserify { .dependency }

Provides browser-compatible cryptographic functionality including algorithm discovery utilities.

Version

Workspace
tessl
Visibility
Public
Created
Last updated
Describes
npmpkg:npm/crypto-browserify@3.12.x
tile.json