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



Thanks for all the help people.  The c call crypt() seems to be the go.  

Cheers

Tony


Shimpei Yamashita wrote:
> 
> 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/
> 
> -----------------------------------------------------------------------
> Next Technical Meeting:  Sat, May 12 13:30-
> Next Nomikai Meeting:    Fri, June (TBA) 19:30- Tengu Tokyo Eki Mae
> -----------------------------------------------------------------------
> more info: http://www.tlug.gr.jp           Sponsor: Global Online Japan


Home | Main Index | Thread Index

Home Page Mailing List Linux and Japan TLUG Members Links