Mailing List Archive

Support open source code!


[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Looking for c source code to generate cvs passwords



On Tue, May 01, 2001 at 03:41:18AM -0700, Jake Morrison wrote:
> So, if you can figure out how to generate normal crypt'ed
> passwords, you are there. The source for /sbin/passwd, maybe?
> Or PAM.

passwd(1) uses libcrypt, which is part of glibc. That's probably the right
place to look. Or you can just call the C library function crypt(3) and
let Ulrich Drepper worry about the implementation.

BTW, if you have perl installed, you can generate encrypted passwords without
mucking about with your /etc/passwd file:

bash$ perl -e 'print crypt("password", "aa"),"\n"'
aajfMKNH1hTm2

For better security, "aa" should be replaced with a random two-character
string.

-- 
Shimpei Yamashita                               http://www.shimpei.org/


Home | Main Index | Thread Index

Home Page Mailing List Linux and Japan TLUG Members Links