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 "@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 1 month ago
Edit Page