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.
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 ...