This content has been marked as final. Show 5 replies
You would have to encrypt the files in some way. AIR doesn't provide a built-in encryption API for arbitrary files, so this is something you would have to provide.
One possibility is to store the assets in an encrypted database, although you will have to evaluate the performance implications, especially if the files are large.
Neither of these methods is probably good enough to stop a skilled hacker, but it would deter most of us.
Ok, problem is I need to decrypt them for AIR to be able to use them.
I saw an AIR up that had all assets encripted and their extension was typical extension+"e". e.g. jpge or xmle.
I suppse "e" stands for encrypted. I could not open them outside that AIR app, however I didn't try too hard.
Of course hackers would not find it that hard to find a workaround that, but I am looking for something 'against' the regular user.
Any new ideas are welcome! :)
For images, you can use the Loader.loadBytes() function to put your de-encrypted image data into a loader object.
For XML, you can convert the de-encrypted string with XML( string );
And how do I encrypt them, please?
That's up to you.
The easiest way is to use the built-in database, but again, storing lots of large objects in databases is usually problematic, so you should test this option with a full data set first.