CVS log for src/lib/libcrypt/crypt.c
Up to [FreeBSD] / src / lib / libcrypt
Request diff between arbitrary revisions
Keyword substitution: kv
Default branch: MAIN
Revision 1.25.2.1.2.1: download - view: text, markup, annotated - select for diffs
Fri Nov 11 04:20:22 2011 UTC (3 months ago) by kensmith
Branches: RELENG_9_0
CVS tags: RELENG_9_0_0_RELEASE
Diff to: previous 1.25.2.1: preferred, colored
Changes since revision 1.25.2.1: +0 -0 lines
SVN rev 227445 on 2011-11-11 04:20:22Z by kensmith Copy stable/9 to releng/9.0 as part of the FreeBSD 9.0-RELEASE release cycle. Approved by: re (implicit)
Revision 1.25.2.1: download - view: text, markup, annotated - select for diffs
Fri Sep 23 00:51:37 2011 UTC (4 months, 2 weeks ago) by kensmith
Branches: RELENG_9
CVS tags: RELENG_9_0_BP
Branch point for: RELENG_9_0
Diff to: previous 1.25: preferred, colored
Changes since revision 1.25: +0 -0 lines
SVN rev 225736 on 2011-09-23 00:51:37Z by kensmith Copy head to stable/9 as part of 9.0-RELEASE release cycle. Approved by: re (implicit)
Revision 1.25: download - view: text, markup, annotated - select for diffs
Thu May 5 01:09:42 2011 UTC (9 months, 1 week ago) by obrien
Branches: MAIN
CVS tags: RELENG_9_BP, HEAD
Branch point for: RELENG_9
Diff to: previous 1.24: preferred, colored
Changes since revision 1.24: +2 -2 lines
SVN rev 221471 on 2011-05-05 01:09:42Z by obrien s/shaN_crypt/crypt_shaN/g to be a more consistent with the existing naming. Reviewed by: markm
Revision 1.24: download - view: text, markup, annotated - select for diffs
Sat Apr 9 14:02:04 2011 UTC (10 months ago) by markm
Branches: MAIN
Diff to: previous 1.23: preferred, colored
Changes since revision 1.23: +10 -0 lines
SVN rev 220497 on 2011-04-09 14:02:04Z by markm Add SHA256/512 ($5$ and $6$) to crypt(3). Used in linux-world, doesn't hurt us. PR: misc/124164 Submitted by: KIMURA Yasuhiro < yasu utahime org > MFC after: 1 month
Revision 1.23.36.1: download - view: text, markup, annotated - select for diffs
Tue Dec 21 17:10:29 2010 UTC (13 months, 2 weeks ago) by kensmith
Branches: RELENG_7_4
CVS tags: RELENG_7_4_0_RELEASE
Diff to: previous 1.23: preferred, colored; next MAIN 1.24: preferred, colored
Changes since revision 1.23: +0 -0 lines
SVN rev 216618 on 2010-12-21 17:10:29Z by kensmith Copy stable/7 to releng/7.4 in preparation for FreeBSD-7.4 release. Approved by: re (implicit)
Revision 1.23.32.1.6.1: download - view: text, markup, annotated - select for diffs
Tue Dec 21 17:09:25 2010 UTC (13 months, 2 weeks ago) by kensmith
Branches: RELENG_8_2
CVS tags: RELENG_8_2_0_RELEASE
Diff to: previous 1.23.32.1: preferred, colored; next MAIN 1.23.34.1: preferred, colored
Changes since revision 1.23.32.1: +0 -0 lines
SVN rev 216617 on 2010-12-21 17:09:25Z by kensmith Copy stable/8 to releng/8.2 in preparation for FreeBSD-8.2 release. Approved by: re (implicit)
Revision 1.23.32.1.4.1: download - view: text, markup, annotated - select for diffs
Mon Jun 14 02:09:06 2010 UTC (19 months, 4 weeks ago) by kensmith
Branches: RELENG_8_1
CVS tags: RELENG_8_1_0_RELEASE
Diff to: previous 1.23.32.1: preferred, colored; next MAIN 1.23.34.1: preferred, colored
Changes since revision 1.23.32.1: +0 -0 lines
SVN rev 209145 on 2010-06-14 02:09:06Z by kensmith Copy stable/8 to releng/8.1 in preparation for 8.1-RC1. Approved by: re (implicit)
Revision 1.23.34.1: download - view: text, markup, annotated - select for diffs
Wed Feb 10 00:26:20 2010 UTC (2 years ago) by kensmith
Branches: RELENG_7_3
CVS tags: RELENG_7_3_0_RELEASE
Diff to: previous 1.23: preferred, colored; next MAIN 1.24: preferred, colored
Changes since revision 1.23: +0 -0 lines
SVN rev 203736 on 2010-02-10 00:26:20Z by kensmith Copy stable/7 to releng/7.3 as part of the 7.3-RELEASE process. Approved by: re (implicit)
Revision 1.23.32.1.2.1: download - view: text, markup, annotated - select for diffs
Sun Oct 25 01:10:29 2009 UTC (2 years, 3 months ago) by kensmith
Branches: RELENG_8_0
CVS tags: RELENG_8_0_0_RELEASE
Diff to: previous 1.23.32.1: preferred, colored; next MAIN 1.23.34.1: preferred, colored
Changes since revision 1.23.32.1: +0 -0 lines
SVN rev 198460 on 2009-10-25 01:10:29Z by kensmith Copy stable/8 to releng/8.0 as part of 8.0-RELEASE release procedure. Approved by: re (implicit)
Revision 1.23.32.1: download - view: text, markup, annotated - select for diffs
Mon Aug 3 08:13:06 2009 UTC (2 years, 6 months ago) by kensmith
Branches: RELENG_8
CVS tags: RELENG_8_2_BP, RELENG_8_1_BP, RELENG_8_0_BP
Branch point for: RELENG_8_2, RELENG_8_1, RELENG_8_0
Diff to: previous 1.23: preferred, colored; next MAIN 1.24: preferred, colored
Changes since revision 1.23: +0 -0 lines
SVN rev 196045 on 2009-08-03 08:13:06Z by kensmith Copy head to stable/8 as part of 8.0 Release cycle. Approved by: re (Implicit)
Revision 1.23.30.1: download - view: text, markup, annotated - select for diffs
Wed Apr 15 03:14:26 2009 UTC (2 years, 9 months ago) by kensmith
Branches: RELENG_7_2
CVS tags: RELENG_7_2_0_RELEASE
Diff to: previous 1.23: preferred, colored; next MAIN 1.24: preferred, colored
Changes since revision 1.23: +0 -0 lines
SVN rev 191087 on 2009-04-15 03:14:26Z by kensmith Create releng/7.2 from stable/7 in preparation for 7.2-RELEASE. Approved by: re (implicit)
Revision 1.23.28.1: download - view: text, markup, annotated - select for diffs
Tue Nov 25 02:59:29 2008 UTC (3 years, 2 months ago) by kensmith
Branches: RELENG_7_1
CVS tags: RELENG_7_1_0_RELEASE
Diff to: previous 1.23: preferred, colored; next MAIN 1.24: preferred, colored
Changes since revision 1.23: +0 -0 lines
SVN rev 185281 on 2008-11-25 02:59:29Z by kensmith Create releng/7.1 in preparation for moving into RC phase of 7.1 release cycle. Approved by: re (implicit)
Revision 1.23.26.1: download - view: text, markup, annotated - select for diffs
Thu Oct 2 02:57:24 2008 UTC (3 years, 4 months ago) by kensmith
Branches: RELENG_6_4
CVS tags: RELENG_6_4_0_RELEASE
Diff to: previous 1.23: preferred, colored; next MAIN 1.24: preferred, colored
Changes since revision 1.23: +0 -0 lines
SVN rev 183531 on 2008-10-02 02:57:24Z by kensmith Create releng/6.4 from stable/6 in preparation for 6.4-RC1. Approved by: re (implicit)
Revision 1.23: download - view: text, markup, annotated - select for diffs
Mon Jun 2 19:29:27 2003 UTC (8 years, 8 months ago) by markm
Branches: MAIN
CVS tags: RELENG_8_BP, RELENG_7_BP, RELENG_7_4_BP, RELENG_7_3_BP, RELENG_7_2_BP, RELENG_7_1_BP, RELENG_7_0_BP, RELENG_7_0_0_RELEASE, RELENG_7_0, RELENG_7, RELENG_6_BP, RELENG_6_4_BP, RELENG_6_3_BP, RELENG_6_3_0_RELEASE, RELENG_6_3, RELENG_6_2_BP, RELENG_6_2_0_RELEASE, RELENG_6_2, RELENG_6_1_BP, RELENG_6_1_0_RELEASE, RELENG_6_1, RELENG_6_0_BP, RELENG_6_0_0_RELEASE, RELENG_6_0, RELENG_6, RELENG_5_BP, RELENG_5_5_BP, RELENG_5_5_0_RELEASE, RELENG_5_5, RELENG_5_4_BP, RELENG_5_4_0_RELEASE, RELENG_5_4, RELENG_5_3_BP, RELENG_5_3_0_RELEASE, RELENG_5_3, RELENG_5_2_BP, RELENG_5_2_1_RELEASE, RELENG_5_2_0_RELEASE, RELENG_5_2, RELENG_5
Branch point for: RELENG_8, RELENG_7_4, RELENG_7_3, RELENG_7_2, RELENG_7_1, RELENG_6_4
Diff to: previous 1.22: preferred, colored
Changes since revision 1.22: +5 -0 lines
Add a new hash type. This "NT-hash" is compatible with the password hashing scheme used in Microsoft's NT machines. IT IS NOT SECURE! DON'T USE IT! This is for the use of competent sysadmins only! Submitted by: Michael Bretterklieber
Revision 1.22: download - view: text, markup, annotated - select for diffs
Wed Mar 6 17:18:08 2002 UTC (9 years, 11 months ago) by markm
Branches: MAIN
CVS tags: RELENG_5_1_BP, RELENG_5_1_0_RELEASE, RELENG_5_1, RELENG_5_0_BP, RELENG_5_0_0_RELEASE, RELENG_5_0
Diff to: previous 1.21: preferred, colored
Changes since revision 1.21: +9 -7 lines
No functional change, but big code cleanup. WARNS, lint(1) and style(9).
Revision 1.21: download - view: text, markup, annotated - select for diffs
Sun Sep 16 21:34:37 2001 UTC (10 years, 4 months ago) by dillon
Branches: MAIN
Diff to: previous 1.20: preferred, colored
Changes since revision 1.20: +2 -4 lines
Implement __FBSDID()
Revision 1.20: download - view: text, markup, annotated - select for diffs
Mon Aug 13 14:06:26 2001 UTC (10 years, 6 months ago) by ru
Branches: MAIN
Diff to: previous 1.19: preferred, colored
Changes since revision 1.19: +1 -4 lines
Removed duplicate VCS ID tags, as per style(9).
Revision 1.14.2.2: download - view: text, markup, annotated - select for diffs
Thu May 24 12:20:02 2001 UTC (10 years, 8 months ago) by markm
Branches: RELENG_4
CVS tags: RELENG_4_9_BP, RELENG_4_9_0_RELEASE, RELENG_4_9, RELENG_4_8_BP, RELENG_4_8_0_RELEASE, RELENG_4_8, RELENG_4_7_BP, RELENG_4_7_0_RELEASE, RELENG_4_7, RELENG_4_6_BP, RELENG_4_6_2_RELEASE, RELENG_4_6_1_RELEASE, RELENG_4_6_0_RELEASE, RELENG_4_6, RELENG_4_5_BP, RELENG_4_5_0_RELEASE, RELENG_4_5, RELENG_4_4_BP, RELENG_4_4_0_RELEASE, RELENG_4_4, RELENG_4_11_BP, RELENG_4_11_0_RELEASE, RELENG_4_11, RELENG_4_10_BP, RELENG_4_10_0_RELEASE, RELENG_4_10
Diff to: previous 1.14.2.1: preferred, colored; branchpoint 1.14: preferred, colored; next MAIN 1.15: preferred, colored
Changes since revision 1.14.2.1: +43 -6 lines
MFC: Blowfish password hashing scheme (From OpenBSD) and remove the dlsym() hack.
Revision 1.19: download - view: text, markup, annotated - select for diffs
Sun Mar 11 16:05:43 2001 UTC (10 years, 11 months ago) by markm
Branches: MAIN
Diff to: previous 1.18: preferred, colored
Changes since revision 1.18: +9 -2 lines
Add OpenBSD-style blowfish password hashing. This makes one less gratuitous difference between us and our sister project. This was given to me _ages_ ago. May apologies to Paul for the length of time its taken me to commit. Obtained from: Niels Provos <provos@physnet.uni-hamburg.de>/OpenBSD Submitted by: Paul Herman <pherman@frenchfries.net>
Revision 1.18: download - view: text, markup, annotated - select for diffs
Thu Dec 28 11:23:01 2000 UTC (11 years, 1 month ago) by peter
Branches: MAIN
Diff to: previous 1.17: preferred, colored
Changes since revision 1.17: +7 -7 lines
Hindsight is wonderful, but I got cold feet over the crypt(3) default so I am backing it out for now. The problem is that some random program calling crypt() could be passing a DES salt and the crypt(3) library would encrypt it in md5 mode and there would be a password mismatch as a result. I wrote a validater function for the DES code to verify that a salt is valid for DES, but I realized there were too many strange things to go wrong. passwd(1), pw(8) etc still generate md5 passwords by default for /etc/master.passwd, so this is almost academic. It is a big deal for things that have their own crypt(3)-ed password strings (.htaccess, etc etc). Those are the things I do not want to break. My DES salt recognizer basically checked if the salt was either 2 or 13 characters long, or began with '_' (_PASSWORD_EFMT1). I think it would have worked but I have seen way too much crypt() mishandling in the past.
Revision 1.17: download - view: text, markup, annotated - select for diffs
Thu Dec 28 10:32:00 2000 UTC (11 years, 1 month ago) by peter
Branches: MAIN
Diff to: previous 1.16: preferred, colored
Changes since revision 1.16: +41 -11 lines
Merge into a single US-exportable libcrypt, which only provides one-way hash functions for authentication purposes. There is no more "set the libcrypt->libXXXcrypt" nightmare. - Undo the libmd.so hack, use -D to hide the md5c.c internals. - Remove the symlink hacks in release/Makefile - the algorthm is set by set_crypt_format() as before. If this is not called, it tries to heuristically figure out the hash format, and if all else fails, it uses the optional auth.conf entry to chose the overall default hash. - Since source has non-hidden crypto in it there may be some issues with having the source it in some countries, so preserve the "secure/*" division. You can still build a des-free libcrypt library if you want to badly enough. This should not be a problem in the US or exporting from the US as freebsd.org had notified BXA some time ago. That makes this stuff re-exportable by anyone. - For consistancy, the default in absence of any other clues is md5. This is to try and minimize POLA across buildworld where folk may suddenly be activating des-crypt()-hash support. Since the des hash may not always be present, it seemed sensible to make the stronger md5 algorithm the default. All things being equal, no functionality is lost. Reviewed-by: jkh (flame-proof suit on)
Revision 1.14.2.1: download - view: text, markup, annotated - select for diffs
Wed Sep 20 11:19:53 2000 UTC (11 years, 4 months ago) by green
Branches: RELENG_4
CVS tags: RELENG_4_3_BP, RELENG_4_3_0_RELEASE, RELENG_4_3, RELENG_4_2_0_RELEASE, RELENG_4_1_1_RELEASE
Diff to: previous 1.14: preferred, colored
Changes since revision 1.14: +54 -9 lines
MFC: login.conf password format switching
Revision 1.16: download - view: text, markup, annotated - select for diffs
Thu Aug 24 17:51:16 2000 UTC (11 years, 5 months ago) by green
Branches: MAIN
CVS tags: PRE_SMPNG
Diff to: previous 1.15: preferred, colored
Changes since revision 1.15: +4 -2 lines
Still have to support libscrypt for now :( Add #defines to take DES out for it.
Revision 1.15: download - view: text, markup, annotated - select for diffs
Tue Aug 22 02:15:52 2000 UTC (11 years, 5 months ago) by green
Branches: MAIN
Diff to: previous 1.14: preferred, colored
Changes since revision 1.14: +52 -9 lines
Add working and easy crypt(3)-switching. Yes, we need a whole new API for crypt(3) by now. In any case: Add crypt_set_format(3) + documentation to -lcrypt. Add login_setcryptfmt(3) + documentation to -lutil. Support for switching crypt formats in passwd(8). Support for switching crypt formats in pw(8). The simple synopsis is: edit login.conf; add a passwd_format field set to "des" or "md5"; go nuts :) Reviewed by: peter
Revision 1.14: download - view: text, markup, annotated - select for diffs
Fri Jan 7 06:33:54 2000 UTC (12 years, 1 month ago) by kris
Branches: MAIN
CVS tags: RELENG_4_BP, RELENG_4_1_0_RELEASE, RELENG_4_0_0_RELEASE
Branch point for: RELENG_4
Diff to: previous 1.13: preferred, colored
Changes since revision 1.13: +2 -4 lines
Zap SHA1 password support. This will be re-implemented at a later date.
Revision 1.13: download - view: text, markup, annotated - select for diffs
Wed Sep 22 06:53:08 1999 UTC (12 years, 4 months ago) by markm
Branches: MAIN
Diff to: previous 1.12: preferred, colored
Changes since revision 1.12: +3 -3 lines
Never return NULL, always return a hash. Submitted by: dt
Revision 1.12: download - view: text, markup, annotated - select for diffs
Mon Sep 20 12:45:49 1999 UTC (12 years, 4 months ago) by markm
Branches: MAIN
Diff to: previous 1.11: preferred, colored
Changes since revision 1.11: +36 -144 lines
Big code cleanup. (Inspired by Brandon Gillespie). Also move as much as possible away from secure/ to make extending easier.
Revision 1.3.4.2: download - view: text, markup, annotated - select for diffs
Sun Sep 5 11:18:33 1999 UTC (12 years, 5 months ago) by peter
Branches: RELENG_2_1_0
Diff to: previous 1.3.4.1: preferred, colored; branchpoint 1.3: preferred, colored; next MAIN 1.4: preferred, colored
Changes since revision 1.3.4.1: +2 -2 lines
$Id$ -> $FreeBSD$
Revision 1.5.2.1: download - view: text, markup, annotated - select for diffs
Sun Sep 5 11:16:57 1999 UTC (12 years, 5 months ago) by peter
Branches: RELENG_2_2
Diff to: previous 1.5: preferred, colored; next MAIN 1.6: preferred, colored
Changes since revision 1.5: +2 -2 lines
$Id$ -> $FreeBSD$
Revision 1.7.2.1: download - view: text, markup, annotated - select for diffs
Sun Aug 29 14:56:33 1999 UTC (12 years, 5 months ago) by peter
Branches: RELENG_3
CVS tags: RELENG_3_5_0_RELEASE, RELENG_3_4_0_RELEASE, RELENG_3_3_0_RELEASE
Diff to: previous 1.7: preferred, colored; next MAIN 1.8: preferred, colored
Changes since revision 1.7: +2 -2 lines
$Id$ -> $FreeBSD$
Revision 1.11: download - view: text, markup, annotated - select for diffs
Sat Aug 28 05:03:23 1999 UTC (12 years, 5 months ago) by peter
Branches: MAIN
Diff to: previous 1.10: preferred, colored
Changes since revision 1.10: +2 -2 lines
$Header$ -> $FreeBSD$
Revision 1.10: download - view: text, markup, annotated - select for diffs
Sat Aug 28 00:04:19 1999 UTC (12 years, 5 months ago) by peter
Branches: MAIN
Diff to: previous 1.9: preferred, colored
Changes since revision 1.9: +2 -2 lines
$Id$ -> $FreeBSD$
Revision 1.9: download - view: text, markup, annotated - select for diffs
Sat Jan 23 08:27:36 1999 UTC (13 years ago) by markm
Branches: MAIN
Diff to: previous 1.8: preferred, colored
Changes since revision 1.8: +122 -154 lines
The new crypt code broke "make world". Back it out.
Revision 1.8: download - view: text, markup, annotated - select for diffs
Thu Jan 21 13:50:09 1999 UTC (13 years ago) by brandon
Branches: MAIN
Diff to: previous 1.7: preferred, colored
Changes since revision 1.7: +154 -122 lines
Rewrite of crypt library to be more modular, and addition of the
Secure Hashing Algorithm - 1 (SHA-1), along with the further
refinement of what $x$salt$hash means. With this new crypt the
following are all acceptable:
$1$
$MD5$
$SHA1$
Note: $2$ is used by OpenBSD's Blowfish, which I considered adding
as $BF$, but there is no actual need for it with SHA-1. However,
somebody wishing to add OpenBSD password support could easilly add
it in now.
There is also a malloc_crypt() available in the library now, which
behaves exactly the same as crypt(), but it uses a malloced buffer
instead of a static buffer. However, this is not standard so will
likely not be used much (at all).
Also, for those interested I did a brief speed test Pentium 166/MMX,
which shows the DES crypt to do approximately 2640 crypts a CPU second,
MD5 to do about 62 crypts a CPU second and SHA1 to do about 18 crypts
a CPU second.
Reviewed by: Mark Murray
Revision 1.7: download - view: text, markup, annotated - select for diffs
Sat Feb 22 15:06:16 1997 UTC (14 years, 11 months ago) by peter
Branches: MAIN
CVS tags: RELENG_3_BP, RELENG_3_2_PAO_BP, RELENG_3_2_PAO, RELENG_3_2_0_RELEASE, RELENG_3_1_0_RELEASE, RELENG_3_0_0_RELEASE
Branch point for: RELENG_3
Diff to: previous 1.6: preferred, colored
Changes since revision 1.6: +2 -2 lines
Revert $FreeBSD$ to $Id$
Revision 1.6: download - view: text, markup, annotated - select for diffs
Tue Jan 14 06:09:00 1997 UTC (15 years ago) by jkh
Branches: MAIN
Diff to: previous 1.5: preferred, colored
Changes since revision 1.5: +2 -2 lines
Make the long-awaited change from $Id$ to $FreeBSD$ This will make a number of things easier in the future, as well as (finally!) avoiding the Id-smashing problem which has plagued developers for so long. Boy, I'm glad we're not using sup anymore. This update would have been insane otherwise.
Revision 1.5: download - view: text, markup, annotated - select for diffs
Mon Oct 14 08:34:02 1996 UTC (15 years, 4 months ago) by phk
Branches: MAIN
CVS tags: RELENG_2_2_BP, RELENG_2_2_8_RELEASE, RELENG_2_2_7_RELEASE, RELENG_2_2_6_RELEASE, RELENG_2_2_5_RELEASE, RELENG_2_2_2_RELEASE, RELENG_2_2_1_RELEASE, RELENG_2_2_0_RELEASE
Branch point for: RELENG_2_2
Diff to: previous 1.4: preferred, colored
Changes since revision 1.4: +10 -5 lines
A couple of minor nits. Submitted by: Craig Leres <leres@ee.lbl.gov> Submitted by: Theo Deraadt <deraadt@theos.com>
Revision 1.4: download - view: text, markup, annotated - select for diffs
Fri Jul 12 18:56:01 1996 UTC (15 years, 7 months ago) by jkh
Branches: MAIN
Diff to: previous 1.3: preferred, colored
Changes since revision 1.3: +3 -2 lines
General -Wall warning cleanup, part I. Submitted-By: Kent Vander Velden <graphix@iastate.edu>
Revision 1.3.4.1: download - view: text, markup, annotated - select for diffs
Wed Jun 5 02:52:23 1996 UTC (15 years, 8 months ago) by jkh
Branches: RELENG_2_1_0
CVS tags: RELENG_2_1_7_RELEASE, RELENG_2_1_6_RELEASE, RELENG_2_1_6_1_RELEASE, RELENG_2_1_5_RELEASE
Diff to: previous 1.3: preferred, colored
Changes since revision 1.3: +2 -2 lines
This 3rd mega-commit should hopefully bring us back to where we were. I can get it to `make world' succesfully, anyway!
Revision 1.3: download - view: text, markup, annotated - select for diffs
Tue May 30 05:42:22 1995 UTC (16 years, 8 months ago) by rgrimes
Branches: MAIN
CVS tags: RELENG_2_1_0_RELEASE, RELENG_2_1_0_BP, RELENG_2_0_5_RELEASE, RELENG_2_0_5_BP, RELENG_2_0_5
Branch point for: RELENG_2_1_0
Diff to: previous 1.2: preferred, colored
Changes since revision 1.2: +7 -7 lines
Remove trailing whitespace.
Revision 1.2: download - view: text, markup, annotated - select for diffs
Mon Nov 7 21:07:09 1994 UTC (17 years, 3 months ago) by phk
Branches: MAIN
CVS tags: RELENG_2_0_5_ALPHA, RELEASE_2_0, BETA_2_0, ALPHA_2_0
Diff to: previous 1.1: preferred, colored
Changes since revision 1.1: +120 -153 lines
*** ATTENTION *** YOU MIGHT BE ABOUT TO BE HOSED *** ATTENTION *** This effectively changes the non-DES password algoritm. If you have the "securedist" installed you will have no problems with this. (Though you might want to consider using this password-encryption instead of the DES-based if your system is likely to be hacked) If you are running a -current system without the "securedist" installed: YOU WILL NEED TO CHANGE ALL PASSWORDS !! There is no backwards mode. Suggested procedure is: Update your sources cd /usr/src/lib/libcrypt make clean make all make install passwd root <set roots new password> change password for any other users on the system. This algorithm is expected to be much better than the traditional DES- based algorithm. It uses the MD5 algorithm at what it is best at, as opposed to the DES algorithm at something it isn't good at at all. The algorithm is designed such that it should very hard to shortcut the calculations needed to build a dictionary, and to make partial knowledge (Hmm, his password starts with a 'P'...) useless. Of course if somebody breaks the MD5 algorithm this looses too. The salt is 48 bits (8 char @ base64). The encrypted password is 128 bits. And I am positively delighted to say that it takes 34 msec to crypt() a password on a Pentium/60Mhz, so building a dictionary is not really an option for hackers at the moment.
Revision 1.1.1.1 (vendor branch): download - view: text, markup, annotated - select for diffs
Tue Aug 9 17:07:27 1994 UTC (17 years, 6 months ago) by csgr
Branches: natecrypt
CVS tags: libscript
Diff to: previous 1.1: preferred, colored
Changes since revision 1.1: +0 -0 lines
Nates password scrambler, from FreebSD 1.1.5, but with everything except crypt() ripped out Reviewed by: Geoff Rehmet Submitted by: Nate Williams
Revision 1.1: download - view: text, markup, annotated - select for diffs
Tue Aug 9 17:07:26 1994 UTC (17 years, 6 months ago) by csgr
Branches: MAIN
Initial revision
