Crypto JS Encryption & Decryption in Android
Hi, today I explain how to do encryption in android using java script. Create sample.html file on the assets folder and add the following html code on it. <html> <head> <script language="javascript" src="aes.js"> </script> </head> <body> </body> </html> Here I add a javascript file , in this file there is a code for encryption and decryption Create a javascript file from the below code and save it on our assets folder with .js extension and access this one on our activity class. /* CryptoJS v3.1.2 code.google.com/p/crypto-js (c) 2009-2013 by Jeff Mott. All rights reserved. code.google.com/p/crypto-js/wiki/License */ var CryptoJS=CryptoJS||function(u,p){var d={},l=d.lib={},s=function(){},t=l.Base={extend:function(a){s.prototype=this;var c=new s;a&&c.mixIn(a);c.hasOwnProperty("init")||(c.init=function(){c.$super.init.apply(this,argumen...