PocketMatrix forums

A read-only archive of the PocketMatrix forums (2001–2014). Posting and accounts are closed.

Handango registration code - source?

I want to support Handango's automatic registration method. I cannot see source on their developer resources, just an explanation. Does anyone know if sample source of their key generator is available? I have emailed them & await a reply. (I have been sending out manual reg codes for 3 years for my current game & I'm fed up doing it)
I tried logging into Handango to give you the link from where I got the information, but gave me Apache server error and spew...

An email on from me took 28 days for Handango to respond to. During that time I found it in the developer FAQ.

Basically it's an RPN string using variables "key" "c" "i" which loops through each charecter numbered "i" "c" equals ASCII, and "key" I think done as an int then cut down to an unsigned short.

So if you looped through with

Code:
key+=~i * (c&31);


Your RPN would be "i ~ c 31 & key +"
There is an RPN tester available as well.
thanks, I read their description online but could not tell whether it was easy or hard to code. All they needed to do was put up a few lines of code.
got a big reply from Handango. Nice to see they respond quickly to developers who only have medium sales levels.

after a couple of days working with this I finally decided to use a 3rd party piece of expression evaluation code. The Handango RPN strings can be quite complex so it's not as easy as it seems in the simple example above if you want to make it hard to crack.

Did I say finally, the parser code I had picked up was buggy so I just hard coded the calculation to do what Jandango need in 12 lines of code.