CodeQL library for Python
codeql/python-all 2.1.1-dev (changelog, source)
Search

Module Cryptography

Provides models for cryptographic things.

Note: The CryptographicAlgorithm class currently doesn’t take weak keys into consideration for the isWeak member predicate. So RSA is always considered secure, although using a low number of bits will actually make it insecure. We plan to improve our libraries in the future to more precisely capture this aspect.

Import path

import semmle.python.Concepts

Imports

Cryptography

Provides models for cryptographic concepts.

Modules

PublicKey

Provides models for public-key cryptography, also called asymmetric cryptography.