Home | Platform SDK

bcrypt

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

import { Bcrypt } from "@arkecosystem/platform-sdk-crypto";

Hash a value

Bcrypt.hash("password");

Verify that a value matches the expected hash

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

2020 © ARK.io | All rights reserved | An ARK.io Product