183
rated 0 times
[
189]
[
6]
/ answers: 1 / hits: 16611
/ 11 Years ago, wed, january 22, 2014, 12:00:00
var encrypted = CryptoJS.AES.encrypt(jsonStr, 'youngunicornsrunfree', { format: JsonFormatter });
//convert encrypted to a string for transfer
//convert string back to Crypto object so it can be decrypted.
var decrypted = CryptoJS.AES.decrypt(encrypted, youngunicornsrunfree, { format: JsonFormatter });
The above two steps, work fine. But in between I need to convert encrypted to a string for transmitting over a network and then convert it back. How can I do this?
More From » cryptojs