Weak crypto

August 16, 2024 · View on GitHub

CodeSeverityi18nExperimental
weak-cryptoInformationsast_warnings.weak_crypto

Introduction

Detect usage of weak crypto algorithm with the Node.js core Crypto dependency. Algorithm considered to be weak are:

  • md5
  • md4
  • md2
  • sha1
  • ripemd160

Example

import crypto from "crypto";

crypto.createHash("md5");