On Mar 9, 2000 at 06:38, Mayuresh A Kathe wrote:

> I would like to know how unix passwd file is created? where can I get the
> source code for doing the same sort of encryption on a passwd file I am
> creating for a opensource project I am working on.

Refer the crypt(3) function:
NAME
       crypt - password and data encryption

SYNOPSIS
       #define _XOPEN_SOURCE
       #include <unistd.h>

       char *crypt(const char *key, const char *salt);


> Else does anybody have any other Encryption Algo/Source in C.

Yes, there's a simple XOR algorithm at
http://satyaonline.cjb.net/coder.c.gz

(It helps to have your own mailqueue; I had typed the wrong address and am
editing it in the mailqueue :) )

-- 
Satya. http://satyaonline.cjb.net/
Mumbai bus guide at http://satyaonline.cjb.net/ !
FREE! Email reminder service at http://satyaonline.cjb.net/rem.html
<<<       Hi! I'm a tagline virus! Steal me & join in the fun!       >>>

To subscribe / unsubscribe goto the site www.ilug-bom.org ., click on the mailing list 
button and fill the appropriate information 
and submit. For any other queries contact the ML maintener

Reply via email to