Weak crypto algorithm

July 21, 2026 · View on GitHub

CodeSeverityi18nExperimental
crypto.weak-algorithmInformationsast_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");