05-18-2011 09:29 AM
Having just released my first Blackberry App, there were a few challenges with dynamic licensing I went through that I wanted to make everyone else aware of.
I used the PHP SHA1 function with some padded text to generate a unique license key for each unique PIN - something I assumed most people did. To verify the keys when the game is loaded, I used an SHA1 java function I found online. In this way, I was able to verify that the key from App World matches up with the key unique to that phone. Unfortunately for me, it looks like the PHP SHA1 function pads zeroes in some positions while the java version does not, so the license keys never matched and I was left with a cripped app...
It's a bit of a newb mistake but either way, just letting anyone else know who might be going through the same problem to pad some zeroes.
How else did people verify their app world key matched their phone key, aside from using an SHA1 algorithm built into their apps?