passwd generator?

passwd generator?

Post by Sameh Firgis Ri » Sat, 09 Mar 1996 04:00:00



is ther such a program? ... a program that cab generate randome passwds
for  lets say the alphabete and numbers?
tahnx
 
 
 

1. random passwd generator

How about this minimalist program below.  You give a number as an argument
and it'll give you that many passwords, both in the original form and
encrypted form.  It tries to make the passwords be a pronounce-able word.

Hack and enjoy.

--

Unix Hacker for Swarthmore College      :     :    :   :  : :: ::: :::: :::::
Information Services, Swarthmore, PA, USA.      Copyright 1992 by Eiji Hirai.
I don't speak for Swarthmore College.                    All Rights Reserved.

/* generate.c - generates encrypted strings for random passwords.  -eiji */

#include <stdio.h>
#include <time.h>

extern char     *crypt();

#define SALT    ".."
#define LETTERS 26      /* number of letters in the English alphabet */

void    main(int argc, char *argv[])
{
        int     howmany, numConsonant, numVowel, count, count2;
        char    password[16], consonant[LETTERS], vowel[LETTERS];

        if (argc != 2) {
                fprintf (stderr, "usage: %s howmany\n", argv[0]);
                exit (1);
        }

        howmany = atoi (argv[1]);
        srandom((int)(time((time_t *)0)));

        strcpy (consonant, "bcdfghjklmnpqrstvwxyz");
        strcpy (vowel, "aeiou");
        numConsonant = strlen(consonant);
        numVowel = strlen(vowel);

        for (count = 0; count < howmany; count++)
        {
                strcpy (password, "");
                for (count2 = 0; count2 < 8; count2 += 2)
                        password[count2] = consonant[random()%numConsonant];
                for (count2 = 1; count2 < 8; count2 += 2)
                        password[count2] = vowel[random()%numVowel];
                for (count2 = 0; count2 < 8; count2 ++)
                        if (!(random() % 3))
                                password[count2] = password[count2] - 'a' + 'A';
                printf ("%s\t%s\n", password, crypt(password, SALT));
        }

2. Kernel 2.4 versus 2.5 --- which one is better for iBook?

3. Wanted: encrypted passwd generator for DOS

4. RedHat 7.2 and Firewalling

5. Passwd Generator

6. Vncserver doesn`t start a window manager

7. Looking for public domain passwd generator

8. $$$Make Money Fast$$$

9. Traffic generators and Packet generators

10. Converting BSDi's passwd and master.passwd to Linux

11. passwd (NIS): Couldn't change passwd/attributes for joeblogg

12. passwd: can't open ptmp, can't update passwd

13. BSDi passwd file to Linux Passwd file