PBKDF2
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 2 years ago
Edit Page