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 "@ardenthq/sdk-cryptography";

Encode a string to Base64

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

Decrypt a PBKDF2 message

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