CodeQL library for JavaScript/TypeScript
codeql/javascript-all 0.8.13 (changelog, source)
Search

Module CryptoAlgorithms

Provides classes modeling cryptographic algorithms, separated into strong and weak variants.

The classification into strong and weak are based on Wikipedia, OWASP and Google (2021).

Import path

import semmle.javascript.security.CryptoAlgorithms

Classes

CryptographicAlgorithm

A cryptographic algorithm.

EncryptionAlgorithm

An encryption algorithm such as DES or AES512.

HashingAlgorithm

A hashing algorithm such as MD5 or SHA512.

PasswordHashingAlgorithm

A password hashing algorithm such as PBKDF2 or SCRYPT.