Subject: Re: batch passwd
To: Michael Kukat <>
From: Wojciech Puchar <>
List: netbsd-users
Date: 08/13/2001 09:35:10
> On Mon, 13 Aug 2001, Wojciech Puchar wrote:
> > what is C-library function name to encrypt password (i will run usermod
> > from C program)
> Usually, crypt() does this job. But be careful to use it, it will result in
> different outputs, depending on the password encoding scheme. The old scheme
> gives 13 chars, the newer MD5 thing results in a longer string. Maybe NetBSD
> always results in 13 chars, but your code will not be portable, as i saw in
> a little program, as soon as it touched FreeBSD :)

i will read it on netbsd and linux as i want my program portable..

thank you!