I'm trying to write an extension to InDesign and I use the following code to store a simple string in the encrypted data store that is available in Air:
var hostnameBytes:ByteArray = new ByteArray();
Then, I use the following code to retrieve the data from storage:
storedValue = EncryptedLocalStore.getItem("hostname");
if (storedValue != null)
serverName = storedValue.readUTFBytes(storedValue.length);
However, the above does not work within the context of the extension. Do we have access to the encrypted data store in the extensions? Is there anything else that I need to do to get this to work?
Retrieving data ...