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

Latest commit

 

History

History
21 lines (14 loc) · 423 Bytes

pbkdf2.md

File metadata and controls

21 lines (14 loc) · 423 Bytes

PBKDF2

The PBKDF2 (Password-Based Key Derivation Function 2) class provides methods to encrypt and decrypt messages using a password.

Importing the PBKDF2 class

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

Encode a string to Base64

PBKDF2.encrypt("Hello World", "password");

Decrypt a PBKDF2 message

PBKDF2.decrypt(encryptedMessage, "password");