
Hi, Any one with info on how scratch cards numbers are generated. Like for safcom? To prevent hacking, reverse engineering.

Wikipedia has all that info. I just dont know the exact page. On Mon, Jul 12, 2010 at 6:00 PM, Peter Muchemi <pmuchemi@gmail.com> wrote:
Hi,
Any one with info on how scratch cards numbers are generated. Like for safcom? To prevent hacking, reverse engineering. _______________________________________________ Skunkworks mailing list Skunkworks@lists.my.co.ke http://lists.my.co.ke/cgi-bin/mailman/listinfo/skunkworks ------------ Skunkworks Server donations spreadsheet
http://spreadsheets.google.com/ccc?key=0AopdHkqSqKL-dHlQVTMxU1VBdU1BSWJxdy1f... ------------ Skunkworks Rules http://my.co.ke/phpbb/viewtopic.php?f=24&t=94 ------------ Other services @ http://my.co.ke
-- Solomon Kariri, Software Developer, Cell: +254736 729 450 Skype: solomonkariri

Lol, even if I knew I wouldn't say lest I be sued into oblivion :) On Mon, Jul 12, 2010 at 18:00, Peter Muchemi <pmuchemi@gmail.com> wrote:
Hi,
Any one with info on how scratch cards numbers are generated. Like for safcom? To prevent hacking, reverse engineering. _______________________________________________ Skunkworks mailing list Skunkworks@lists.my.co.ke http://lists.my.co.ke/cgi-bin/mailman/listinfo/skunkworks ------------ Skunkworks Server donations spreadsheet
http://spreadsheets.google.com/ccc?key=0AopdHkqSqKL-dHlQVTMxU1VBdU1BSWJxdy1f... ------------ Skunkworks Rules http://my.co.ke/phpbb/viewtopic.php?f=24&t=94 ------------ Other services @ http://my.co.ke

Peter this is fishy question.... however to satisfy your curiosity - They use a trick in computer science called Uniform Random Distribution. The concept assumes that if you pick a billion numbers and randomly pick 100,000 or so unique numbers then the probability that someone will guess is almost impossible. - They never use pure random numbers (which is impossible to generate anyway) but use uniform random which means that I can not get the same numbers as the previous numbers. As the space gets depleted they move to next billion space. This goes on and so forth etc Becasue of depletion of space, that is why your card must be used within a certain period. regards, Paul. On Mon, Jul 12, 2010 at 6:00 PM, Peter Muchemi <pmuchemi@gmail.com> wrote:
Hi,
Any one with info on how scratch cards numbers are generated. Like for safcom? To prevent hacking, reverse engineering. _______________________________________________ Skunkworks mailing list Skunkworks@lists.my.co.ke http://lists.my.co.ke/cgi-bin/mailman/listinfo/skunkworks ------------ Skunkworks Server donations spreadsheet
http://spreadsheets.google.com/ccc?key=0AopdHkqSqKL-dHlQVTMxU1VBdU1BSWJxdy1f... ------------ Skunkworks Rules http://my.co.ke/phpbb/viewtopic.php?f=24&t=94 ------------ Other services @ http://my.co.ke
-- "Change is slow and gradual. It requires hardwork, a bit of luck, a fair amount of self-sacrifice and a lot of patience." Roy.

For your implementation, im guessing that wat u wana do, wat language are u looking at using to implement this? maybe i can point u in a direction i would use. On Mon, Jul 12, 2010 at 6:29 PM, Paul Roy <roykoikai@gmail.com> wrote:
Peter this is fishy question.... however to satisfy your curiosity - They use a trick in computer science called Uniform Random Distribution. The concept assumes that if you pick a billion numbers and randomly pick 100,000 or so unique numbers then the probability that someone will guess is almost impossible. - They never use pure random numbers (which is impossible to generate anyway) but use uniform random which means that I can not get the same numbers as the previous numbers. As the space gets depleted they move to next billion space. This goes on and so forth etc
Becasue of depletion of space, that is why your card must be used within a certain period.
regards, Paul.
On Mon, Jul 12, 2010 at 6:00 PM, Peter Muchemi <pmuchemi@gmail.com> wrote:
Hi,
Any one with info on how scratch cards numbers are generated. Like for safcom? To prevent hacking, reverse engineering. _______________________________________________ Skunkworks mailing list Skunkworks@lists.my.co.ke http://lists.my.co.ke/cgi-bin/mailman/listinfo/skunkworks ------------ Skunkworks Server donations spreadsheet
http://spreadsheets.google.com/ccc?key=0AopdHkqSqKL-dHlQVTMxU1VBdU1BSWJxdy1f... ------------ Skunkworks Rules http://my.co.ke/phpbb/viewtopic.php?f=24&t=94 ------------ Other services @ http://my.co.ke
-- "Change is slow and gradual. It requires hardwork, a bit of luck, a fair amount of self-sacrifice and a lot of patience."
Roy.
_______________________________________________ Skunkworks mailing list Skunkworks@lists.my.co.ke http://lists.my.co.ke/cgi-bin/mailman/listinfo/skunkworks ------------ Skunkworks Server donations spreadsheet
http://spreadsheets.google.com/ccc?key=0AopdHkqSqKL-dHlQVTMxU1VBdU1BSWJxdy1f... ------------ Skunkworks Rules http://my.co.ke/phpbb/viewtopic.php?f=24&t=94 ------------ Other services @ http://my.co.ke

python or ruby. An opportunity to dig deep into these celebrated GPL'ed langs. On Mon, Jul 12, 2010 at 6:53 PM, Luke Kuvheya <tendayi.kuvheya@gmail.com>wrote:
For your implementation, im guessing that wat u wana do, wat language are u looking at using to implement this? maybe i can point u in a direction i would use.
On Mon, Jul 12, 2010 at 6:29 PM, Paul Roy <roykoikai@gmail.com> wrote:
Peter this is fishy question.... however to satisfy your curiosity - They use a trick in computer science called Uniform Random Distribution. The concept assumes that if you pick a billion numbers and randomly pick 100,000 or so unique numbers then the probability that someone will guess is almost impossible. - They never use pure random numbers (which is impossible to generate anyway) but use uniform random which means that I can not get the same numbers as the previous numbers. As the space gets depleted they move to next billion space. This goes on and so forth etc
Becasue of depletion of space, that is why your card must be used within a certain period.
regards, Paul.
On Mon, Jul 12, 2010 at 6:00 PM, Peter Muchemi <pmuchemi@gmail.com>wrote:
Hi,
Any one with info on how scratch cards numbers are generated. Like for safcom? To prevent hacking, reverse engineering. _______________________________________________ Skunkworks mailing list Skunkworks@lists.my.co.ke http://lists.my.co.ke/cgi-bin/mailman/listinfo/skunkworks ------------ Skunkworks Server donations spreadsheet
http://spreadsheets.google.com/ccc?key=0AopdHkqSqKL-dHlQVTMxU1VBdU1BSWJxdy1f... ------------ Skunkworks Rules http://my.co.ke/phpbb/viewtopic.php?f=24&t=94 ------------ Other services @ http://my.co.ke
-- "Change is slow and gradual. It requires hardwork, a bit of luck, a fair amount of self-sacrifice and a lot of patience."
Roy.
_______________________________________________ Skunkworks mailing list Skunkworks@lists.my.co.ke http://lists.my.co.ke/cgi-bin/mailman/listinfo/skunkworks ------------ Skunkworks Server donations spreadsheet
http://spreadsheets.google.com/ccc?key=0AopdHkqSqKL-dHlQVTMxU1VBdU1BSWJxdy1f... ------------ Skunkworks Rules http://my.co.ke/phpbb/viewtopic.php?f=24&t=94 ------------ Other services @ http://my.co.ke
_______________________________________________ Skunkworks mailing list Skunkworks@lists.my.co.ke http://lists.my.co.ke/cgi-bin/mailman/listinfo/skunkworks ------------ Skunkworks Server donations spreadsheet
http://spreadsheets.google.com/ccc?key=0AopdHkqSqKL-dHlQVTMxU1VBdU1BSWJxdy1f... ------------ Skunkworks Rules http://my.co.ke/phpbb/viewtopic.php?f=24&t=94 ------------ Other services @ http://my.co.ke

I had the opportunity to generate some voucher numbers that included random number generation and some mathematical formulas. Sorry I don't have the code but it was done in PHP. -- Many Thanks. Regards, Clement Ongera.

Clement we not giving code, we going to help peter fish n not give him the fish. :-D basically u can design your own algo based on random number generation accompanied with a few rules, and if u storing them in a database(i advise) the u can quickly check their uniqueness by trying to save to a unique column. check these out:- http://stackoverflow.com/questions/119107/how-do-i-generate-a-list-of-n-uniq... <http://stackoverflow.com/questions/119107/how-do-i-generate-a-list-of-n-unique-random-numbers-in-ruby> http://effbot.org/pyfaq/how-do-i-generate-random-numbers-in-python.htm <http://effbot.org/pyfaq/how-do-i-generate-random-numbers-in-python.htm>if u have any questions don't hesitate :) On Mon, Jul 12, 2010 at 7:16 PM, Clement Ongera <cnongera@gmail.com> wrote:
I had the opportunity to generate some voucher numbers that included random number generation and some mathematical formulas. Sorry I don't have the code but it was done in PHP.
-- Many Thanks.
Regards, Clement Ongera. _______________________________________________ Skunkworks mailing list Skunkworks@lists.my.co.ke http://lists.my.co.ke/cgi-bin/mailman/listinfo/skunkworks ------------ Skunkworks Server donations spreadsheet
http://spreadsheets.google.com/ccc?key=0AopdHkqSqKL-dHlQVTMxU1VBdU1BSWJxdy1f... ------------ Skunkworks Rules http://my.co.ke/phpbb/viewtopic.php?f=24&t=94 ------------ Other services @ http://my.co.ke

Omera "- They never use pure random numbers (which is impossible to generate anyway" http://en.wikipedia.org/wiki/Entropy_pool ? From: Paul Roy [mailto:roykoikai@gmail.com] Sent: 12 July 2010 5:29 p To: Skunkworks Mailing List Subject: Re: [Skunkworks] scratch cards generating algorithm Peter this is fishy question.... however to satisfy your curiosity - They use a trick in computer science called Uniform Random Distribution. The concept assumes that if you pick a billion numbers and randomly pick 100,000 or so unique numbers then the probability that someone will guess is almost impossible. - They never use pure random numbers (which is impossible to generate anyway) but use uniform random which means that I can not get the same numbers as the previous numbers. As the space gets depleted they move to next billion space. This goes on and so forth etc Becasue of depletion of space, that is why your card must be used within a certain period. regards, Paul. On Mon, Jul 12, 2010 at 6:00 PM, Peter Muchemi <pmuchemi@gmail.com> wrote: Hi, Any one with info on how scratch cards numbers are generated. Like for safcom? To prevent hacking, reverse engineering. _______________________________________________ Skunkworks mailing list Skunkworks@lists.my.co.ke http://lists.my.co.ke/cgi-bin/mailman/listinfo/skunkworks ------------ Skunkworks Server donations spreadsheet http://spreadsheets.google.com/ccc?key=0AopdHkqSqKL-dHlQVTMxU1VBdU1BSWJxdy1f bjAwOUE <http://spreadsheets.google.com/ccc?key=0AopdHkqSqKL-dHlQVTMxU1VBdU1BSWJxdy1 fbjAwOUE&hl=en> &hl=en ------------ Skunkworks Rules http://my.co.ke/phpbb/viewtopic.php?f=24 <http://my.co.ke/phpbb/viewtopic.php?f=24&t=94> &t=94 ------------ Other services @ http://my.co.ke <http://my.co.ke/> -- "Change is slow and gradual. It requires hardwork, a bit of luck, a fair amount of self-sacrifice and a lot of patience." Roy.

Yep, we generate card numbers for scratch cards for recharging, transfer numbers for guys like western union etc; lots of *true* randomness and a little math. We use entrphy to generate real randomness (computer randomness is never really random because computers can't "think" on their own) /dev/random, /dev/urandom, http://en.wikipedia.org/wiki/dev/random, http://en.wikipedia.org/wiki/Random_number_generator are good places to start Basically just come up with your own but start with a source that will give you real random numbers and y ou should be good to go. -----Original Message----- From: Peter Muchemi [mailto:pmuchemi@gmail.com] Sent: 12 July 2010 5:00 p To: Skunkworks forum Subject: [Skunkworks] scratch cards generating algorithm Hi, Any one with info on how scratch cards numbers are generated. Like for safcom? To prevent hacking, reverse engineering.
participants (7)
-
Chris | Ronell Africa
-
Clement Ongera
-
Haggai Nyang
-
Luke Kuvheya
-
Paul Roy
-
Peter Muchemi
-
solomon kariri