Cryptography

The recipes layer

  • Fernet (symmetric encryption)
  • X.509

The hazardous materials layer

  • Primitives
    • Authenticated encryption
    • Asymmetric algorithms
    • Constant time functions
    • Key derivation functions
    • Key wrapping
    • Message authentication codes
    • Message digests (Hashing)
    • Symmetric encryption
    • Symmetric Padding
    • Two-factor authentication
  • Exceptions
  • Random number generation
  • Decrepit cryptography

The cryptography open source project

  • Installation
  • Changelog
  • Frequently asked questions
  • Development
  • Use of OpenSSL
  • Security
  • Known security limitations
  • API stability
  • Doing a release
  • Community
  • Glossary
Cryptography
  • Primitives
  • View page source

Danger

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.

Primitives

  • Authenticated encryption
    • ChaCha20Poly1305
    • AESGCM
    • AESGCMSIV
    • AESOCB3
    • AESSIV
    • AESCCM
  • Asymmetric algorithms
    • Ed25519 signing
    • X25519 key exchange
    • Ed448 signing
    • X448 key exchange
    • Elliptic curve cryptography
    • RSA
    • Diffie-Hellman key exchange
    • DSA
    • Key Serialization
    • Asymmetric Utilities
    • Cloud KMS and HSM Asymmetric Keys
    • Common types
  • Constant time functions
    • bytes_eq()
  • Key derivation functions
    • Variable cost algorithms
    • Fixed cost algorithms
    • Interface
  • Key wrapping
    • aes_key_wrap()
    • aes_key_unwrap()
    • aes_key_wrap_with_padding()
    • aes_key_unwrap_with_padding()
    • Exceptions
  • Message authentication codes
    • Cipher-based message authentication code (CMAC)
    • Hash-based message authentication codes (HMAC)
    • Poly1305
  • Message digests (Hashing)
    • Hash
    • XOFHash
    • SHA-2 family
    • BLAKE2
    • SHA-3 family
    • SHA-1
    • MD5
    • SM3
    • Extendable Output Functions
    • Interfaces
  • Symmetric encryption
    • Cipher
    • Algorithms
    • Modes
    • Interfaces
    • Exceptions
  • Symmetric Padding
    • PKCS7
    • ANSIX923
    • PaddingContext
  • Two-factor authentication
    • InvalidToken
    • HOTPHashTypes
    • HOTP
    • Throttling
    • Re-synchronization of the counter
    • Provisioning URI
Previous Next

© Copyright 2013-2025, Individual Contributors.

Built with Sphinx using a theme provided by Read the Docs.