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)
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.