This is a “Hazardous Materials” module. You should ONLY use it if you’re 100% absolutely sure that you know what you’re doing because this module is full of land mines, dragons, and dinosaurs with laser guns.


Getting a backend

cryptography aims to support multiple backends to ensure it can provide the widest number of supported cryptographic algorithms as well as supporting platform specific implementations.

You can get the default backend by calling default_backend().

The default backend will change over time as we implement new backends and the libraries we use in those backends changes.

Returns:An object that provides at least CipherBackend, HashBackend, and HMACBackend.