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

Importing the PBKDF2 class

1import { PBKDF2 } from "@payvo/sdk-cryptography";

Encode a string to Base64

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

Decrypt a PBKDF2 message

1PBKDF2.decrypt(encryptedMessage, "password");
Last updated 4 months ago
Edit Page
2022 © ARK.io | All Rights Reserved
An ARK.io Product