Skip to content

Detect and throw warning for weak crypto hash algorithm #25

@fraxken

Description

@fraxken

The goal of this task (issue) is to develop a new feature capable of detecting any usage of weak hash algorithm like md5.

For the sake of simplicity it is sufficient to look for the createHash method.

Example of code that should throw a new warning:

import crypto from "crypto";

crypto.createHash("md5");

We may have to answer few questions for this issue:

  • Do we have to handle other API (like the WebCrypto API)? Maybe we can also in some ways deal with popular crypto library ?
  • Is there is another algorithms that we are considering "weak" other than md5 ? (i guess sha1 has to be considered weak too).

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions