Skip to content

Latest commit

 

History

History
21 lines (14 loc) · 489 Bytes

argon2.md

File metadata and controls

21 lines (14 loc) · 489 Bytes

argon2

The Argon2 class provides methods to extract the numerical value out of any currency representation by normalizing the input and removing any locale specific rules like symbols and use of commas.

Importing the Argon2 class

import { Argon2 } from "@ardenthq/cryptography";

Hash a value

Argon2.hash("password");

Verify that a value matches the expected hash

Argon2.verify(Bcrypt.hash("password"), "password");