$Crypto.Decrypt
Overview
Decrypts the encrypted data with specified password
string $Crypto.Decrypt(password: string, salt: string, data: string)
Arguments
string password
Password to be used in decryption
string salt
Salt to be used in decryption
string data
Encrypted data in base64 encoding
Returns
Decrypted text
Example
Encrypt and decrypt text
var password = 'password123';
var textToEncrypt = 'hello';
var salt = 'salt';
var encryptedText = $Crypto.Encrypt(password, salt, textToEncrypt);
var decryptedText = $Crypto.Decrypt(password, salt, encryptedText);
Copyright © 2010 - 2023 Emakin. All rights reserved.