Skip to content

Decrypt¶

Decrypts the encrypted data with the specified password.

1
$Crypto.Decrypt(password: string, salt: string, data: string):string

Parameters¶

string password
    The password to be used in decryption.

string salt
    The salt to be used in decryption.

string data
    The encrypted data in Base64 encoding.

Returns¶

The decrypted text.

Remarks¶

Encrypt and decrypt text:¶

1
2
3
4
5
6
7
var password = 'password123';
var textToEncrypt = 'hello';
var salt = 'salt';

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

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