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/sdk-crypto";

Encode a string to Base64

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

Decrypt a PBKDF2 message

PBKDF2.decrypt(encryptedMessage, "password");
2021 © ARK.io | All Rights Reserved
An ARK.io Product