Skip to content

Argon2

Recommended

Argon2 is the winner of the 2015 Password Hashing Competition. It comes in three variants: Argon2d (data-dependent), Argon2i (data-independent), and Argon2id (hybrid, recommended). It is the current state-of-the-art for password hashing.

What is Argon2?

Argon2 is a recommended cryptographic hash algorithm that produces a Configurable (typically 256 bits / 32 bytes) output. Argon2 is the winner of the 2015 Password Hashing Competition. It comes in three variants: Argon2d (data-dependent), Argon2i (data-independent), and Argon2id (hybrid, recommended). It is the current state-of-the-art for password hashing. It is classified as very slow (intentional) in performance and commonly used for password hashing (argon2id is the recommended variant) and key derivation for encryption.

Output Length

Configurable (typically 256 bits / 32 bytes)

Speed

Very Slow (Intentional)

Security

Recommended

Performance

Intentionally slow with configurable memory, CPU, and parallelism parameters. Resists both CPU and GPU brute-force attacks.

Use Cases

Example Hash

Input:

MyPassword123

Argon2 Output:

$argon2id$v=19$m=65536,t=3,p=4$c2FsdHNhbHRzYWx0$WtQH8gOf8fVOvhKaYl0MjJTM

Try Argon2 Password Hasher

Hash and verify passwords with Argon2 directly in your browser via WebAssembly. Free, instant, and 100% private.

Try Argon2 Now →

Related Algorithms

bcrypt Secure
184 bits (60 character encoded string)
scrypt Secure
Configurable (typically 256 bits / 32 bytes)
PBKDF2 Secure
Configurable (depends on underlying hash function)

Related Reading

SHA-256 vs SHA-512 vs MD5: Hash Algorithm Comparison → How to Create a Strong Password in 2026 → What Is JWT and How It Works →