O'Reilly logo

Flash Development for Android Cookbook by Joseph Labrecque

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Encrypting a local SQLite database

Normally, a local SQLite database does not require any security or encryption. However, if our application contains sensitive data stored within the local application database files, we would want to ensure that an intruder or thief cannot access this information. Thankfully, we can encrypt the databases available to us on AIR for Android to ensure that even if a user's device is lost or stolen, their private information remains secure.

Getting ready...

In order to properly encrypt a database file, we will need to use an encryption library. In this example, we will use the as3crypto package available at http://code.google.com/p/as3crypto/. Download the .SWC to follow along with this example.

We need to make the ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required