...
string password
Password to to be used in encryption
string salt
...
Text to be encrypted
Returns
Example
Encrypt and decrypt text
Code Block | ||
---|---|---|
| ||
var password = 'password123';
var textToEncrypt = 'hello';
var salt = 'salt';
var encryptedText = $Crypto.Encrypt(password, salt, textToEncrypt);
var decryptedText = $Crypto.Decrypt(password, salt, encryptedText); |