Skip to main content
Participant
August 5, 2011
Question

File Encryption for iOS app?

  • August 5, 2011
  • 1 reply
  • 2851 views

Hello there,

i hope this is something that can be solved using adobe flash/air to develop iPad apps. There are certain techniques in objective C so ensure the file contained in an ipa file are stored encrypted. since i am trying to do an app with some sensitive data, i need to find a way to encrypt the installed files. so that if the iPad falls into the wrong hands, they cant access the data that easily. i am loading images, 3d data, and other stuff dynamically from within my app. now i need to make sure that these files are stored encrypted.

are there any commands in air, or within the ADT package commandline that provide such functionality?

or do i have to switch to xCode and objective C?

-kigosa

This topic has been closed for replies.

1 reply

August 5, 2011

Hi:

Currently there is no "inbult" feature in AIR to work with Encryption. You can any time use your own encryption logic or some third party AS Library to achieve the same thing. In the future releases of AIR you will be able to use the EncryptedLocalStore APIs in AIR(Currently they don’t work on mobile) to store sensitive data and keys in Encrypted and private(accessible only to your app) manner.

Hope this helps!

Regards,

Saumitra Bhave

AIR iOS

kigosaAuthor
Participant
August 5, 2011

is there any scheduled date, when this will be implemented?

i am looking into as3crypto right now, and this seems to be some sort of solution for my problem. hope this doesn't cost to much performance, since there is very little of that on the iPad to begin with.

anyway, thanks for your quick reply, i was searching for hours for something that doesn't exist sofar...

-kigosa

Participating Frequently
August 5, 2011

AIR does have a built-in SQL database that supports encryption.

In the next major release of AIR, there are two new features that help this use case. There is a cryptographically strong random number generator, which you can use to implement a secure encryption algorithm. There is also a feature that lets you extend the runtime with your own native code. In this case, you could write a native data manager in objective C and use it from your ActionScript code to secure your data using the techniques you alluded above.