home *** CD-ROM | disk | FTP | other *** search
- Path: sparky!uunet!usc!rpi!ghost.dsi.unimi.it!univ-lyon1.fr!frmop11!barilvm!bimacs!yedidya
- From: yedidya@bimacs.BITNET (Yedidya Israel)
- Newsgroups: comp.unix.admin
- Subject: Re: Program to generate encrypted version of password?
- Message-ID: <4608@bimacs.BITNET>
- Date: 31 Dec 92 12:34:34 GMT
- References: <1992Dec31.000203.1031@vpbuild.vp.com>
- Organization: Math department, Bar-Ilan University, Ramat-Gan, ISRAEL
- Lines: 32
-
- In article <1992Dec31.000203.1031@vpbuild.vp.com> jessea@u013.me.vp.com (Jesse W. Asher) writes:
- >At one time I played with a program that would take a password (and
- >maybe the salt) and encrypt the password just like to would go into the
- >passwd file. Does anyone know the name of the program? I need to
- >generate an encrypted version of the password without it being in the
- >passwd file itself. Thanks.
-
- /*
- * usage: pcrypt string salt
- * output: result of crypt (string, salt);
- */
-
- #include <stdio.h>
-
- main(argc, argv)
- int argc;
- char *argv[];
- {
- if (argc <= 2)
- fprintf (stderr, "Usage: %s string salt\n", argv[0]);
- else
- puts (crypt (argv[1], argv[2]));
- }
-
- Warning: this program is copyrighted :-)
- --
- Israel Yedidya, Phone: 972-3-5318682 or 972-3-5318407/8
- System Administrator, Fax: 972-3-5353325
- Math & CS Department, Email: yedidya@bimacs.cs.biu.ac.il
- Bar-Ilan University, Bitnet: yedidya@bimacs
- Ramat-Gan, ISRAEL. Uucp: ...!uunet!pucc.princeton.edu!bimacs!yedidya
- If someone proves there is no God, I'll stop being religious!
-