its just a common util that floats around the net. everyones got it or
you can go to google and enter mkpasswd.c and turn up lots of hits.
or i got this from icecast CVS 1.1 you can cut it into a file, compile and
run. note the freshness date :)
---------------------------->snip here, put in .c file, compile<---------
/* simple password generator by Nelson Minar (minar@reed.edu)
* copyright 1991, all rights reserved.
* You can use this code as long as my name stays with it.
*/
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#ifndef lint
static char rcsid[] = "@(#)$Id: mkpasswd.c,v 1.1.1.1 1999/03/05 22:40:55
barath Exp $";
#endif
extern char *getpass();
int main(argc, argv)
int argc;
char *argv[];
{
static char saltChars[]
"abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789./";
char salt[3];
char * plaintext;
int i;
if (argc < 2) {
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;
}
else {
salt[0] = argv[1][0];
salt[1] = argv[1][1];
salt[2] = '\0';
if ((strchr(saltChars, salt[0]) == NULL) || (strchr(saltChars,
salt[1]) == NULL))
fprintf(stderr, "illegal salt %s\n", salt), exit(1);
}
plaintext = getpass("plaintext: ");
printf("%s\n", crypt(plaintext, salt));
return 0;
}
On Tue, 19 Jun 2001, Asymmetric wrote:
> Date: Tue, 19 Jun 2001 17:24:24 -0400
> From: Asymmetric <all@biosys.net>
> Reply-To: icecast@xiph.org
> To: icecast@xiph.org
> Subject: [icecast] one more try..
>
> asked once before and didn't get a reply, but it was probably lost in
my
> back-and-forth with Jack.. where is the encrypted password support for
> icecast 1.3.10?
>
> The documentation references a "mkpasswd.c" source file that
doesn't exist
> anywhere in my icecast directory tree..
>
> -------signature file-------
> PGP Key Fingerprint:
> 446B 7718 B219 9F1E 43DD 8E4A 6BE9 D739 CCC5 7FD7
>
> "I don't think [Linux] will be very successful in the long
run."
> "My experience and some of my friends' experience is that Linux is
quite
> unreliable. Microsoft is really unreliable but Linux is worse."
> -Ken Thompson, Interview May 1999.
>
> http://www.freebsd.org
> FreeBSD - The Power to Serve
>
> http://www.rfnj.org
> Radio Free New Jersey - 435 streams - 96kbps @ 44khz Stereo
>
> http://namespace.org -- http://name.space
> Resist the ICANN! Support name.space!
>
>
> --- >8 ----
> List archives: http://www.xiph.org/archives/
> icecast project homepage: http://www.icecast.org/
> To unsubscribe from this list, send a message to
'icecast-request@xiph.org'
> containing only the word 'unsubscribe' in the body. No subject is
needed.
> Unsubscribe messages sent to the list will be ignored/filtered.
>
--- >8 ----
List archives: http://www.xiph.org/archives/
icecast project homepage: http://www.icecast.org/
To unsubscribe from this list, send a message to
'icecast-request@xiph.org'
containing only the word 'unsubscribe' in the body. No subject is
needed.
Unsubscribe messages sent to the list will be ignored/filtered.