From: <dia...@us...> - 2003-10-24 13:19:40
|
Update of /cvsroot/genericircd/gircd2.0/tools In directory sc8-pr-cvs1:/tmp/cvs-serv30709/tools Added Files: instmkpass instmkpass.c Removed Files: Makefile name.txt olines.txt opers.txt Log Message: Added/removed some files, everything should be right now ... --- NEW FILE: instmkpass --- (This appears to be a binary file; contents omitted.) --- NEW FILE: instmkpass.c --- /* simple password generator by Nelson Minar (mi...@re...) * copyright 1991, all rights reserved. * You can use this code as long as my name stays with it. */ #define _XOPEN_SOURCE #define _XOPEN_VERSION 4 #define _XOPEN_SOURCE_EXTENDED #include <stdio.h> #include <stdlib.h> #include <string.h> #include <time.h> #include <unistd.h> int main(int argc, char *argv[]) { static char saltChars[] = "abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789./"; char salt[3]; char * plaintext; srandom(time(0)); /* may not be the BEST salt, but its close */ salt[0] = saltChars[random() % 64]; salt[1] = saltChars[random() % 64]; salt[2] = 0; if ( argc > 0 ) { plaintext = argv[1]; } else { plaintext = getpass("plaintext: "); } printf("%s\n", crypt(plaintext, salt)); return 0; } --- Makefile DELETED --- --- name.txt DELETED --- --- olines.txt DELETED --- --- opers.txt DELETED --- |