bcrypt

The Bcrypt 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 Bcrypt class

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

Hash a value

1Bcrypt.hash("password");

Verify that a value matches the expected hash

1Bcrypt.verify(Bcrypt.hash("password"), "password");
Last updated 1 month ago
Edit Page
Share:
2022 © ARK.io | All Rights Reserved An ARK.io Product