Re: generating a random six digit number



On Mon, 7 Dec 2009 11:58:52 -0800 (PST), Khurram
<ontrac2hack@xxxxxxxxx> wrote:

On Dec 7, 12:58 pm, Khurram <ontrac2h...@xxxxxxxxx> wrote:
Hey guys I am trying to generate a random six digit number and am
wondering what options do I have. MD5 and SHa-1 are some just some
ways to do it. but nevertheless, I am curious on other ideas...alas if
the output is a six digit decimal then its not very secure. Any brute
force attack code crack it.

Your help would be greatly appreciated.
thanks,
khurram

Hey thanks for your advice. I am pretty to all this security stuff and
I have to come up with a random six digit SPC code (mobil phones).
Any guides or direction in coming up with the algorithm would be most
appreciated.
How many numbers do you need? Are duplicates allowed or must all the
numbers be different, at least for the first million numbers? Do you
allow 000000 or 000001 as numbers or does the first significant digit
have to be non-zero?

What does your company stand to lose (legal fees etc.) if someone sues
you for providing an insecure number?

rossum

So, any useful links and tests would be helpful as well

thanks,
khurram

.