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

1import { Argon2 } from "@ardenthq/sdk-cryptography";

Hash a value

1Argon2.hash("password");

Verify that a value matches the expected hash

1Argon2.verify(Bcrypt.hash("password"), "password");
Last updated 1 year ago
Edit Page
Share: