Accessing data in the encrypted local store

Use the getItem() method to read data in the encrypted local store, passing in the name string assigned when the item was added. The data is returned as a ByteArray object. You can use the appropriate read methods of the ByteArray class to extract the data inside the byte array.

var storedValue = air.EncryptedLocalStore.getItem("firstName"); 
air.trace(storedValue.readUTFBytes(storedValue.length)); // "Bob"