Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

string password
Password to to be used in encryption
string salt

...

Text to be encrypted

Returns

Example

Encrypt and decrypt text

Code Block
languagejs
var password = 'password123';
var textToEncrypt = 'hello';
var salt = 'salt';

var encryptedText = $Crypto.Encrypt(password, salt, textToEncrypt);

var decryptedText = $Crypto.Decrypt(password, salt, encryptedText);