Password Generator


 
Thread Tools Search this Thread
Special Forums Cybersecurity Password Generator
# 8  
Old 09-29-2004
Perderabo -
try Blum Blum Shub PNRG. With correctly chosen large primes, it will meet almost any cryptographic need. Choosing the primes is not trivial. And you need gmp or some other BIGNUM.

http://www.ciphersbyritter.com/NEWS2/TESTSBBS.HTM
# 9  
Old 09-29-2004
Jim it has to run fast in ksh. I am developing a decimal arithemtic based multipy with carry. As far as I know, this is new ground. If I was coding in C, I would use the mersenne twister in a minute. I have toyed with trying to code it in ksh, but it's tough and I wouldn't trust my implementation until I understand how it works. Maybe next year. Meanwhile I want to get the MWC working. It is almost as fast as linear congruential generator. It really should be able to rid the world of lcg's. They persist only because they are fast and easily coded. Diehard is the first test that it hasn't passed. Diehard needs about 80,000,000 bits of random data for a single test run. This takes about 10 hours to generate, so progress is slow. I'm pretty sure the problem is arising when I convert the raw random number to an output modulus. But it will take a week or so to be sure.
# 10  
Old 10-01-2004
Quote:
Originally posted by Perderabo
I'm working on a random number generator for use with a password generator. So far it passes every test I can find except for test number 10 of the Diehard test suite. Diehard has a well deserved reputation as the toughest suite of tests for random number generators.
I wonder why not use one of the already available PRNG solutions like prngd, or one of the kernel based PRNGs?

Are they not good enough, or for portablility reasons?
# 11  
Old 10-01-2004
I'll say it again: it has to run fast in ksh. And no, prngd cannot pass diehard. The output from /dev/random and /dev/urandom also flunks diehard for sunos and linux. Passing diehard is tough.

A sample run:
Code:
>>}###@>---- CvccvE-n
Template EEEEEEEE has 2,992,179,271,065,856 possibilities
Template CvccvE-n has 2,389,338,000 possibilities

Vephu}:6     VICTOR echo papa hotel uniform right-brace colon six
Sawtu]!7     SIERRA alpha whiskey tango uniform right-bracket exclamation seven
Yuywud-0     YANKEE uniform yankee whiskey uniform delta hyphen zero
MuwsaQ:4     MIKE uniform whiskey sierra alpha QUEBEC colon four
Yaqka%.7     YANKEE alpha quebec kilo alpha percent period seven

>>}###@>----

Each of those 2,389,338,000 possibilities must be absolutely equiprobable. And the selections chosen must be completely unpredictable. Achieving both goals simultaneously is not a piece of cake. And yes, RNGs are notoriously non-portable. I want to do all of this in a self-contained portable shell script.
# 12  
Old 10-01-2004
Quote:
Originally posted by Perderabo
I'll say it again: it has to run fast in ksh. And no, prngd cannot pass diehard. The output from /dev/random and /dev/urandom also flunks diehard for sunos and linux. Passing diehard is tough.
the prev question was posted while I was writing mine Smilie

I am looking forward to seeing your script(if I may of course).
# 13  
Old 10-01-2004
I'm getting close. And I'll post the script here when it's finished. One of the rng's has passed diehard. 62 more rng's to test....
# 14  
Old 10-02-2004
early output:

Code:
$> ksh swordfish 
/dev/urandom 120318102 1330735299 628978242 763612848
>>}###@>---- CvccvE-n
QarhuC/8
Qoyvi+?9
Fusto_>7
Takmuw?6
Feflu?-3

generation of pronouncable passwords :
Code:
>>}###@>---- cvvcvv
loonua
faerai
hookoo
diewoe
xoowiu

Login or Register to Ask a Question

Previous Thread | Next Thread

9 More Discussions You Might Find Interesting

1. Forum Support Area for Unregistered Users & Account Problems

Password sent via reset password email is 'weak' and won't allow me to change my password

I was unable to login and so used the "Forgotten Password' process. I was sent a NEWLY-PROVIDED password and a link through which my password could be changed. The NEWLY-PROVIDED password allowed me to login. Following the provided link I attempted to update my password to one of my own... (1 Reply)
Discussion started by: Rich Marton
1 Replies

2. Shell Programming and Scripting

Hostsfile generator

Hello I use a bash script to creating the hosts file /etc/hosts But there is a bug inside my output and I want to fix this. My Array looks like this: 205,IP 111.122.133.20 205,HOST2 unas 205,HOST1 unas15533 205,COMMENT # UNAS 775,IP ... (9 Replies)
Discussion started by: Marti95
9 Replies

3. Shell Programming and Scripting

Random Password generator with 2 digits and 6 characters

I am using the below to random generate a password but I need to have 2 numeric characters and 6 alphabetic chars head /dev/urandom | tr -dc A-Za-z0-9 | head -c 8 ; echo '' 6USUvqRB ------ Post updated at 04:43 PM ------ Any Help folks - Can the output be passed onto a sed command to... (9 Replies)
Discussion started by: infernalhell
9 Replies

4. UNIX for Beginners Questions & Answers

Password generator with user inputs

Hi, I am new to bash scripting and i wanted to make a bash script that will generate a password for a user. The user must enter his/her name and the url of the site the password is used for. And the script will generate a password with those two elements in the password. So if the url is... (0 Replies)
Discussion started by: Kvr123
0 Replies

5. Shell Programming and Scripting

Sequence generator

Thanks Guys This really helped (5 Replies)
Discussion started by: robert89
5 Replies

6. Cybersecurity

swordfish --- a password generator

Here is my new password generation script. The attachment, swordfish.txt, is in dos format. Remember that you need to use dos2unix or flip or something to get it into unix format. The script is self documenting. It has an extensive help system built-in. And you can run: swordfish "set... (8 Replies)
Discussion started by: Perderabo
8 Replies

7. Shell Programming and Scripting

time generator

Hi experts, I'd like to generate the table/file containing: number of milliseconds elapsed since midnight till midnight. It should contain 5 columns (hours minutes seconds milliseconds): Table will have theoretically 86 400 000 rows. My question is , is there somewhere the file or source... (7 Replies)
Discussion started by: hernand
7 Replies

8. What is on Your Mind?

Barcode Generator

QR Code Generator (0 Replies)
Discussion started by: Neo
0 Replies

9. Shell Programming and Scripting

Range generator

Dear All, I have a sorted file like 1 2 3 8 9 10 45 46 47 78 The output will be range like 1 3 8 10 45 47 78 78 (9 Replies)
Discussion started by: saifurshaon
9 Replies
Login or Register to Ask a Question