Protect your Flash Lite content with Crytography
Do you need to sell your Flash Lite application and you want to safeguard against your customer from installing the app on more than one mobile phone? Turns out that it is quite simple to implement that if you know a bit about crytography and Flash Lite Actionscript.
Here are the steps:
- customer go to your website to register the software with his/her device IME
- you use your encryption key to generate an activation code from the unique IME
- email the activation code back to the customer
Here is how that works on the Flash Lite application:
- when the Flash Lite app runs for the first time, it asks for the input of the activation code
- it then uses the decryption key (actionscript) to compute the original IME value
- it further reads the device IME: fscommand2(“GetDeviceID”, “id”);
- it then tests if the 2 IMEs are the same
- if yes, it saves the status in the SharedObject and continue to run the app
- if no, it returns an error message and gracefully quits the app
The above technique would work even when customers upgrade/reflash the ROM of their mobile phone, like from Window Mobile 5 to Window Mobile 6, etc as the upgrade doesn’t alter the device unique IME.