Help! How Do I Generate Pin Codes For Scratch Cards?

A Member? Please Login  
type your username and password to login
Date: December 05, 2008, 06:30 PM
268567 members and 165660 Topics
Latest Member: lekanboy
Nairaland [Nigerian Forum] Home Help Search Who is currently online? Login Register
Nairaland Forum  |  Technology  |  Webmasters (Moderator: OmniPotens)  |  Help! How Do I Generate Pin Codes For Scratch Cards?
Pages: (1) Go Down Send this topic Notify of replies
Author Topic: Help! How Do I Generate Pin Codes For Scratch Cards?  (Read 200 views)
Ttola (m)
Help! How Do I Generate Pin Codes For Scratch Cards?
« on: March 07, 2008, 12:22 PM »

I'm in the middle of a project development and i need to generate pin code for scratch cards that users would need to logon.

i need a way of generating these and don't no where to look,  thanks


my2cents (m)
Re: Help! How Do I Generate Pin Codes For Scratch Cards?
« #1 on: March 07, 2008, 12:41 PM »

For starters, in lieu of code that may already be out there and much better than this, you can use whatever language you are coding in to generate a set of random numbers.  Just remember that the longer the number, the harder it is, potentially, to crack.  This is where those lessons in probability come in  Wink

If you have a 3-number pin.  It will have only 1000 (10 * 10 * 10) combinations.  Any bored person wouldn't mind entering 1000 numbers to see which will be accepted.  Not to mention, the numbers wouldn't be too random.  But choose a 10-number pin and you are talking another story.  Hopefully you see where I am going with this.

I hope this helps.
naijafan (m)
Re: Help! How Do I Generate Pin Codes For Scratch Cards?
« #2 on: March 07, 2008, 12:43 PM »

@poster
where do you want to check? oh, you need somethn crackable right Huh

dude, come up with your own randomly generated sequence with one of the digits as a checksum that validates the rest.
that way, you and only you will knw the way it works. .until someone analyzes it and posts the hack online Wink

@my2cents
lol, you beat me to submitting a reply.
tundewoods (m)
Re: Help! How Do I Generate Pin Codes For Scratch Cards?
« #3 on: March 07, 2008, 01:08 PM »

Now lets get started.

Com'on guys do expect the dude to start racking his head as well as waste time trying to write an app for that when he can get an app off the shelf.

Anyway i'm from the school of thought that believes in getting things done and infact done very fast.
I have a cool random pin generator that can generate Pins with the following other features

Number's of Pins to Generate: In here you will put the amount of pins you want the application to generate.


Prefix: If you desire to place a prefix number at the beginning of the pin, you can do so. This number will be constant trough the whole batch of pins.

Suffix: You can place a constant number at the end of the pins. It does not matter the length it could be one digit , two digits etc.


Start Control Number:  For inventory purposes you will always have a control number and a batch number. This will allow you to control where your pins are deliver to.

Pin Length: This is the total length of the pin, now if you have added a prefix and a suffix this will decrease the randomly selected number. In other words if you have place a 1 as a prefix and a 2 on the suffix and the pin length is 10 , then the randomly selected number will be only 8 digits long. e.g.:
1XXXXXXXX2

Amount: Here you will put the face value of the pin.

Batch From: Starting number for batch number.

Inc. Batch Every: How many cards each batch will have.

Give me a shout on my email. tundeaguda[at]gmail[dot]com but i must warn i am a bloody capitalist.  Grin


######### Here is a sample generated pin i did while fooling around with it ###########

NAIRA391696134LAND,500 Naira,2,104
NAIRA433519817LAND,500 Naira,3,104
NAIRA518273958LAND,500 Naira,4,104
NAIRA308669054LAND,500 Naira,5,104
NAIRA872117806LAND,500 Naira,6,104
NAIRA200884122LAND,500 Naira,7,104
NAIRA260536022LAND,500 Naira,8,104
NAIRA238343969LAND,500 Naira,9,104
NAIRA865666581LAND,500 Naira,10,104
NAIRA164398761LAND,500 Naira,11,104
NAIRA971662413LAND,500 Naira,12,104
NAIRA568247997LAND,500 Naira,13,105
NAIRA810463342LAND,500 Naira,14,105
NAIRA476499907LAND,500 Naira,15,105
NAIRA782037823LAND,500 Naira,16,105
NAIRA388995970LAND,500 Naira,17,105
NAIRA714003241LAND,500 Naira,18,105
NAIRA955503570LAND,500 Naira,19,105
NAIRA044936663LAND,500 Naira,20,105
NAIRA379126545LAND,500 Naira,21,105
NAIRA956143018LAND,500 Naira,22,105
NAIRA016418418LAND,500 Naira,23,106
NAIRA730529891LAND,500 Naira,24,106
NAIRA975046165LAND,500 Naira,25,106
NAIRA864343506LAND,500 Naira,26,106
NAIRA878870091LAND,500 Naira,27,106
NAIRA115416961LAND,500 Naira,28,106
NAIRA947802831LAND,500 Naira,29,106
NAIRA899149267LAND,500 Naira,30,106
NAIRA561612603LAND,500 Naira,31,106
NAIRA418219122LAND,500 Naira,32,106
NAIRA196817780LAND,500 Naira,33,107
NAIRA003871833LAND,500 Naira,34,107
NAIRA853739898LAND,500 Naira,35,107
nduaj (m)
Re: Help! How Do I Generate Pin Codes For Scratch Cards?
« #4 on: March 07, 2008, 01:45 PM »

@tundewoods

nice programme, but are we sure that we will never have repeated values?
naijafan (m)
Re: Help! How Do I Generate Pin Codes For Scratch Cards?
« #5 on: March 07, 2008, 02:00 PM »

that shouldve been taken care of. since there is a batch number association.

when we have a pool of nine hundred and ninety nine million, nine hundred and ninety nine thousand, nine hundred and ninety nine possibilities. . . a psuedo-random number generator has a lot to play with before thinking of repeating values Wink
smartsoft (m)
Re: Help! How Do I Generate Pin Codes For Scratch Cards?
« #6 on: March 08, 2008, 03:54 PM »

hummmmmmmmmmmmmmm
Ttola (m)
Re: Help! How Do I Generate Pin Codes For Scratch Cards?
« #7 on: March 09, 2008, 02:54 PM »

hmm, thanx so much guys,, but i aint  a nerd that can put that up in hours,,

isnt there a rapid tool that one can just change the algorithm and reuse at ones definition,  please id be intereted if there is
 Cd Directory  Arcmap 9.0 Licence  Online Website For Nigerian Students Www.gnstudents.com  Page 2
Pages: (1) Go Up Send Topic to Friend by E-mail Reply 
Google
 
Web www.nairaland.com
Sections: TV/Movies (2) Music/Radio (2) Celebrities Job Talk Jobs/Vacancies (2) Career Talk Romance Books Politics Sports Fashion Travel
Health Schooling Religion General(2) Business Webmaster Programming Computers Phones Cars & Trucks

Links: Page1 Page2 Page3 Page4 Page5 Page6 Page7 Page8 Page9 Page10

Nairaland is owned by Oluwaseun Osewa
Nairaland Forum | Powered by SMF 1.0.12.
© 2001-2005, Lewis Media. All Rights Reserved.