l i n u x - u s e r s - g r o u p - o f - d a v i s
Next Meeting:
July 7: Social gathering
Next Installfest:
Latest News:
Jun. 14: June LUGOD meeting cancelled
Page last updated:
2001 Dec 30 16:57

The following is an archive of a post made to our 'vox-tech mailing list' by one of its subscribers.

Report this post as spam:

(Enter your email address)
Re: [vox-tech] password question
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [vox-tech] password question

ok, ok, if i did use crypt()  (and this is why i was avoiding it)...

       #include <crypt.h>
       char *crypt(const char *key, const char *salt);

key is the plaintext password.  from the man page,

     salt  is  a  two-character  string  chosen  from  the  set
       [a-zA-Z0-9./].  This string is used to perturb  the  algo-
       rithm in one of 4096 different ways.

so salt is a two character string.   but scrolling down,

       If  the salt starts with $1$ an MD5 based password hashing
       algoritm is applied. The salt should consist off $1$  fol-
       lowed with eight characters.

so just to be clear, if i wanted old style DES encryption, i'd supply a 2
character salt, but if i wanted md5 style encryption, i'd supply an 8
character salt?  (and both salts are null terminated strings).


On Wed, 18 Oct 2000, Peter Jay Salzman wrote:

> i was hoping to avoid that...
> pete
> > You could just write your own - see crypt(3).
> > 
> > Micah
> > 
> > 

LUGOD Group on LinkedIn
Sign up for LUGOD event announcements
Your email address:
LUGOD Group on Facebook
'Like' LUGOD on Facebook:

Hosting provided by:
Sunset Systems
Sunset Systems offers preconfigured Linux systems, remote system administration and custom software development.

LUGOD: Linux Users' Group of Davis
PO Box 2082, Davis, CA 95617
Contact Us

LUGOD is a 501(c)7 non-profit organization
based in Davis, California
and serving the Sacramento area.
"Linux" is a trademark of Linus Torvalds.

Sponsored in part by:
Appahost Applications
For a significant contribution towards our projector, and a generous donation to allow us to continue meeting at the Davis Library.