问题
I am trying to create a secure database for a mobile app using the as3corelib EncryptionKeyGenerator
package from here https://github.com/mikechambers/as3corelib/blob/master/src/com/adobe/air/crypto/EncryptionKeyGenerator.as
but when I run it I get the following error:
Error: EncryptedLocalStore is not supported on the current platform
at flash.data::EncryptedLocalStore$/setItem()
Googling around I see it is becaue the ELS is not supported for mobiles. Does anyone know of the best solution to this problem? I guess I could use the persistence manager to store the information but I am not sure this is the most secure method.
回答1:
I think your best bet is to investigate using an encrypted SQLLite Database. Here is some info on this:
http://cookbooks.adobe.com/post_AIR_Encrypted_SQLite_Database-16250.html
http://www.adobe.com/devnet/air/flex/quickstart/articles/encrypted_database.html
回答2:
EncryptedLocalStore
is available on AIR on the Android platform only since 3.0, so you should now be able to use it on your mobile device; see http://devgirl.org/2011/09/22/flex-mobile-development-encrypting-data/ for an example.
来源:https://stackoverflow.com/questions/7065547/encryptedlocalstore-not-supported