I have an encrypted text message and I want to decrypt it using "crypto-js" library posted on the link: http://code.google.com/p/crypto-js/
I want to decrypt using TRIPLE DES. I downloaded the library and placed "tripledes.js" under "lib" folder in my project. And I'm calling the function to decrypt in this way:
var lib_decrypt = require('tripledes');
var message = lib_decrypt.DES.decrypt(Ti.Utils.base64decode(thetext), "secretphrase");
alert(message);
I'm always getting this error: "Cannot call method 'decrypt' of undefined".
I checked up "tripledes.js" code and sincerely its a big library so i didn't find a solution for how to use this library to decrypt my text in Titanium.
Thank you in advance.