Argon2 Hash Generator

PHC Winner Memory-Hard Side-Channel Safe
Anish Nath
Generate Argon2 Hash
Algorithm Variant
Password
Salt
Random 16-byte salt generated if empty
Security Presets
Parameters
64 MB default

Verify Hash
Argon2 Hash Output

Argon2 hash will appear here

Enter a password and click Generate
Recommended Parameters
Use Case Memory Time Parallel
Interactive login 4 MB 3 1
Moderate (Default) 64 MB 3 4
Sensitive data 256 MB 5 4

Support This Free Tool

Every coffee helps keep the servers running. Every book sale funds the next tool I'm dreaming up. You're not just supporting a site — you're helping me build what developers actually need.

500K+ users
200+ tools
100% private
Privacy Guarantee: Private keys you enter or generate are never stored on our servers. All tools are served over HTTPS.
Understanding Argon2
What is Argon2?

Argon2 is a password hashing algorithm that won the Password Hashing Competition (PHC) in 2015. Designed by Alex Biryukov, Daniel Dinu, and Dmitry Khovratovich, it's specifically built to resist GPU, ASIC, and side-channel attacks.

Algorithm Variants
Argon2d

Data-dependent memory access. Maximum GPU resistance but vulnerable to side-channel attacks. Best for cryptocurrencies and backend applications.

Argon2i

Data-independent memory access. Resistant to side-channel attacks but less GPU resistant. Good for key derivation.

Argon2id Recommended

Hybrid approach combining both. First pass uses Argon2i, subsequent passes use Argon2d. Best for password hashing.

Parameter Guidelines
Memory (m): Higher = more secure but slower. Start with 64MB.
Time (t): Number of iterations. 3 is a good default.
Parallelism (p): Number of threads. Match your CPU cores.
Hash Length: 32 bytes (256 bits) is standard.
Argon2 vs Other Algorithms
Algorithm Memory-Hard GPU Resistant Side-Channel Safe Recommendation
Argon2id Yes High Yes Best choice for new applications
Scrypt Yes High Partial Good alternative, proven in production
BCrypt Limited Medium Yes Still widely used, fixed 4KB memory
PBKDF2 No Low Yes Legacy, avoid for new applications
Code Examples

Python (argon2-cffi)

from argon2 import PasswordHasher
ph = PasswordHasher()
hash = ph.hash("password")
ph.verify(hash, "password")

Node.js (argon2)

const argon2 = require('argon2');
const hash = await argon2.hash("password");
const valid = await argon2.verify(hash, "password");