CodeQL library for Python
codeql/python-all 2.1.1-dev (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.python.concepts.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.