Argon2 Password Hash
The winner of the Password Hashing Competition (PHC). Argon2 is a memory-hard function resistant to GPU cracking.
What is Argon2?
Argon2 is a modern password-hashing function that won the Password Hashing Competition (PHC) in 2015. It was designed to provide both maximum security and high performance, specifically resisting brute-force attacks from GPUs and ASICs.
Zero-Server Tool Data Guarantee
All hashing happens locally in your browser. Your password and parameters never leave your device.
How to Use
Enter Password & Salt
Input the password you wish to hash and a unique salt. Using a random salt is critical for security.
Tune Parameters
Adjust the memory size, iterations, and parallelism to fit your security requirements. Higher values are more secure but slower.
Copy Encoded Hash
The resulting PHC-formatted string contains all parameters, salt, and the hash itself, making it easy to store and verify.
Common Use Cases
User Password Storage
The industry-standard choice for securing user accounts in modern web applications.
Key Derivation
Securely derive encryption keys from a user's master passphrase for local data encryption.
Cryptocurrency
Used by various privacy-focused blockchains for secure wallet encryption and proof-of-work.
Secure Communications
Derive shared secrets in protocols where resistance to hardware-accelerated cracking is required.
Implementation Examples
const argon2 = require('argon2');// Hash a passwordconst hash = await argon2.hash('mySecurePassword');// $argon2id$v=19$m=65536,t=3,p=4$somesalt...// Verify a passwordconst isMatch = await argon2.verify(hash, 'mySecurePassword');console.log(isMatch); // true
Argon2 vs Bcrypt vs Scrypt
| Feature | Argon2id | Bcrypt | Scrypt |
|---|---|---|---|
| Memory hardness | Very High (tunable) | Low (4KB) | High (tunable) |
| GPU/ASIC resistance | Highest | Moderate | High |
| Tunable parameters | Memory, Time, Parallelism | Cost factor | N, r, p |
| PHC Winner? | Yes (2015) | No | No |
| Recommended for | Modern projects | Legacy support | High memory systems |
Production Best Practices & Security
Frequently Asked Questions
Argon2 is a modern password-hashing function that won the Password Hashing Competition (PHC) in 2015. It is designed to be highly resistant to GPU and ASIC cracking attacks by being memory-hard.
Switch to the 'Verify' tab in our tool, paste the PHC-formatted Argon2 hash (e.g., $argon2id$v=19$m=65536,t=3,p=4$...), and enter the candidate password. The tool will automatically parse the parameters from the hash and check for a match.
Argon2i is optimized to resist side-channel attacks. Argon2d is optimized to resist GPU cracking attacks. Argon2id is a hybrid version that combines both, making it the recommended default for most applications.
OWASP and the PHC recommend at least 3 iterations, 64MB of memory (65536 KiB), and 4 threads for typical user password hashing.
Yes, Argon2 is generally considered superior because it is memory-hard, meaning it requires significant RAM to compute. This makes it much harder to crack using specialized hardware like GPUs compared to Bcrypt.