argon2.py 460 B

12345678910111213
  1. # This file is dual licensed under the terms of the Apache License, Version
  2. # 2.0, and the BSD License. See the LICENSE file in the root of this repository
  3. # for complete details.
  4. from __future__ import annotations
  5. from cryptography.hazmat.bindings._rust import openssl as rust_openssl
  6. from cryptography.hazmat.primitives.kdf import KeyDerivationFunction
  7. Argon2id = rust_openssl.kdf.Argon2id
  8. KeyDerivationFunction.register(Argon2id)
  9. __all__ = ["Argon2id"]