argon2
The Argon2
class provides methods to extract the numerical value out of any currency representation by normalising the input and removing any locale specific rules like symbols and use of commas.
Importing the Argon2 class
import { Argon2 } from "@arkecosystem/platform-sdk-crypto";
Hash a value
Argon2.hash("password");
Verify that a value matches the expected hash
Argon2.verify(Bcrypt.hash("password"), "password");
Last updated 3 months ago
Edit Page