From CryptoLUX
Revision as of 16:59, 17 May 2017 by Dmitry.khovratovich (talk | contribs) (Modes)
Jump to: navigation, search


Argon2 is a new hash function, which summarizes the state of the art in the design of memory-hard functions. It is a streamlined and simple design. It aims at the highest memory filling rate and effective use of multiple computing units, while still providing defense against tradeoff attacks. Argon2 is optimized for the x86 architecture and exploits the cache and memory organization of the recent Intel and AMD processors.


Argon2 has one primary variant: Argon2id, and two supplementary variants: Argon2d and Argon2i. Argon2duses data-depending memory access, which makes it suitable for cryptocurrencies and proof-of-work applications with no threats from side-channel timing attacks. Argon2iuses data-independent memory access, which is preferred for password hashing and password-based key derivation. Argon2idworks as Argon2i for the first half of the first iteration over the memory, and as Argon2dfor the rest, thus providing both side-channel attack protection and brute-force cost savings due to time-memory tradeoffs. Argon2imakes more passes over the memory to protect from tradeoff attacks.

Winner of PHC

Argon2 (version 1.3) is the winner of the Password Hashing Competition. In addition to the PHC release, the Argon2 specification also defines two specific modes Argon2id and Argon2ds.


Specification of Argon2 v 1.3 (24.03.2017)

"Argon2, new generation of memory-hard functions for password hashing and other applications", Euro S&P 2016.

IRTF draft of Argon2


Reference and optimized extended implementations in C99 and C++11

Reference implementation in C89 (PHC release)

Python implementation


Research paper "Fast and Tradeoff-Resilient Memory-Hard Functions for Cryptocurrencies and Password Hashing". Introduces Argon2 and its fast-verification feature.

Design Rationality and Security Analysis of PHC Candidates: Overview

Research paper "Tradeoff cryptanalysis of memory-hard functions" (Asiacrypt 2015), Talk at PasswordsCon'14, extended version,

Argon1 Presentation Slides

Argon1 Reference Guide

Other resources

Online hash generator

Go wrapper

Reference and optimized implementations of Argon1

Egalitarian Computing

It is a new concept that to remedy the disparity between hardware-equipped attackers and legitimate security engineers one has to amalgamate computing for security with a memory-hard function.

"Argon2 and Egalitarian Computing" at Real World Cryptography 2016

Asiacrypt 2015 rump session slides