Skip to main content

AsyncArgon2

PyPI version License Tests Coverage

Асинхронная обертка для хэширования паролей с Argon2.

Документация

Установка

pip install async-argon2

Использование

import asyncio
from async_argon2 import AsyncArgon2

hasher = AsyncArgon2()

async def main():
    hashed = await hasher.hash("password123")
    print(hashed)
    
    is_valid = await hasher.verify("password123", hashed)
    print(is_valid)  # True

asyncio.run(main())

Почему AsyncArgon2?

Синхронный Argon2 блокирует event loop. AsyncArgon2 запускает хэширование в отдельном потоке, не блокируя другие задачи.

# ❌ Блокирует event loop
from argon2 import PasswordHasher
hasher = PasswordHasher()
hashed = hasher.hash("password")  # Все ждут!

# ✅ Не блокирует
from async_argon2 import AsyncArgon2
hasher = AsyncArgon2()
hashed = await hasher.hash("password")  # Event loop свободен

Кастомные параметры

hasher = AsyncArgon2(
    time_cost=3,
    memory_cost=153600,
    parallelism=4,
)

Metadata

Release files for async-argon2 1.1.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for async-argon2 1.1.0
File Size Uploaded Provenance Actions
async_argon2-1.1.0.tar.gz 5.3 kB Without provenance Details for async_argon2-1.1.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for async-argon2 1.1.0
File Interpreter ABI Platform Actions
async_argon2-1.1.0-py3-none-any.whl Python 3 none any Details for async_argon2-1.1.0-py3-none-any.whl

Total release size: 10.0 kB

Release files / async_argon2-1.1.0.tar.gz

Download URL async_argon2-1.1.0.tar.gz
Size 5.3 kB
Tags Source
SHA-256 checksum
How to use checksums
355b2f31b2b4bd21cf7e93c31e57a78a86deaf181e056d18cd9869458178b2a4
BLAKE2b-256 checksum
How to use checksums
880222c66ae2f41808695effd2955d3ab2ca06bbcba92cd733b9a63be56b2d27
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.11.19 {"installer":{"name":"uv","version":"0.11.19","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"EndeavourOS","version":null,"id":null,"libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

Release files / async_argon2-1.1.0-py3-none-any.whl

Download URL async_argon2-1.1.0-py3-none-any.whl
Size 4.7 kB
Tags Python 3
SHA-256 checksum
How to use checksums
e42d7b66041bbc0e16b7f5fab0181c0d27f0ca5088558c81d7f2f4962c2c2c06
BLAKE2b-256 checksum
How to use checksums
b1077862783ff63dc3201a7ec69acc6203faf2be63c707946c2f753b31737b32
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.11.19 {"installer":{"name":"uv","version":"0.11.19","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"EndeavourOS","version":null,"id":null,"libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

Security for async-argon2 1.1.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page