home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #31 / NN_1992_31.iso / spool / comp / unix / admin / 6844 < prev    next >
Encoding:
Text File  |  1992-12-31  |  1.5 KB  |  43 lines

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