P-H-C / phc-winner-argon2

The password hash Argon2, winner of PHC
Other
4.78k stars 406 forks source link

Decrypting argon2? #311

Closed sv-du closed 3 years ago

sv-du commented 3 years ago

How do you decrypt a string that's encrypted with argon 2, or is it not possible?

SparkDustJoe commented 3 years ago

I think you mean encoded, because Argon2 is a hash function. It is non-reversable by design. It's meant to hash a password into an encoded string that can only be compared to another encoded string. If they match, the inputs to Argon2 we're the same, but you don't ever know what those inputs were. This is standard hashed password storage practice.

D-Nice commented 3 years ago

From a pure technical perspective, and playing somewhat devil's advocate, it could be utilized in a Feistel Network for encryption scheme purposes, however, I have a feeling this isn't what you were talking about and on its own, it's just a memory hard key derivation function.

Or quite simply, a one-way function.