This demo shows Dojo Offline's SQL encryption technologies. In the table below, we have a sample SQL table that has three columns of data: a last name, a first name, and a social security number. We don't want to store the social security numbers in the clear, just in case they are downloaded for offline use to a laptop and the laptop is stolen.
To use this demo, enter a password and press the ENCRYPT button to see the Social Security column encrypt. Enter the same password and press DECRYPT to see it decrypt. If you enter an incorrect password and press DECRYPT, the Social Security column will remain encrypted and only show gibberish.
Under the covers we use 256-bit AES encryption and your password to derive the crypto key; we use a facility in Google Gears to do the cryptography in such a way that the browser does not lock up during processing. Dojo Offline ties this cryptography into Dojo SQL, providing convenient ENCRYPT() and DECRYPT() SQL keywords you can use to easily have this functionality in your own offline applications. To learn how you can use this feature see here.