Skip to content
This repository was archived by the owner on Jun 16, 2022. It is now read-only.

Latest commit

 

History

History
21 lines (14 loc) · 486 Bytes

File metadata and controls

21 lines (14 loc) · 486 Bytes

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

import { Bcrypt } from "@payvo/cryptography";

Hash a value

Bcrypt.hash("password");

Verify that a value matches the expected hash

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