Calendar

September 2010
S M T W T F S
« Jul    
 1234
567891011
12131415161718
19202122232425
2627282930  

AIR Encrypted SQLite Database

import flash.data.*;
import flash.filesystem.File;

private var dbConn:SQLConnection = new SQLConnection();
private var dbStatement:SQLStatement = new SQLStatement();

private function init(): void {
// create a seed string of your choice
var mySeed:String = “AIR15IsAGreatProduct”;

// prepare a bytearray variable to hold the encryption key
var myKey:ByteArray = new ByteArray();

// create the myKey ByteArray
[...]

SQLite example for AIR

Here is a very simplistic Flex Builder 3 and AIR example that adds and removes records from a table in a local SQLite database. This is not a fully completed AIR project but this code can probably be reused by anyone wanting to get started with AIR+SQLite. There are a couple of other AIR+SQLite examples [...]