On Mon, Jun 19, 2000 at 04:00:11PM -0700, Christopher McCrory wrote:
> So my question is:  Is there a easy algorithm to check the crypt type
> based to something simple?  length?  initial characters?
> 
> my current (des ?) crypt strings are 13 characters
> newer machine (MD5 ?) crypt strings are 35 characters and start with $1$
> others for *BSD and Solaris ?
> is this enough to distinguish them?

. 13 char long (first é char are the salt), only [A-Za-z0-9./] : DES
  everywhere except under slackware 7 (default no DES package) and FreeBSD
. "$1$" + 2 to 8 char (salt) + "$" + 22 char : MD5
  FreeBSD, OpenBSD, any Linux (libc5 and glibc2), and some others
. "$2a$" + 2 digits + "$" + 53 char (first 128 bits are the salt)
  only under OpenBSD

you may look at the sources of:
 . titi <http://groar.sourceforge.net/> (you need openssl or openbsd)
 . john the ripper <http://www.openwall.com/john/>

other DES variants exist but are essentially proprietary

Denis Ducamp.
______________________________________________________________________
OpenSSL Project                                 http://www.openssl.org
User Support Mailing List                    [EMAIL PROTECTED]
Automated List Manager                           [EMAIL PROTECTED]

Reply via email to