Date: Thu, 7 Oct 1999 15:45:10 +0800 (SGT) From: Tan Juay Kwang <jk.tan@pacific.net.sg> To: freebsd-questions@freebsd.org Subject: crypt(3) Message-ID: <Pine.GSO.4.10.9910071535020.28337-100000@firefox.pacific.net.sg>
next in thread | raw e-mail | index | archive | help
Hi, I have a freebsd 3.2 system and is having some problem with the
crypt(3) function. According to the man page, if I were to supply a 2 byte
salt, it will return the historical 13 byte string. However, it seems like
the one in 3.2 is not doing what is said in the man pages?
Sample code and output :-
printf("%s\n",crypt("a","_1234abcd"));
printf("%s\n", crypt("a","ab"));
Output:
$1$_1234abc$zyNh.miJty685SsEEDPDT0
$1$ab$NM4FR4Dl/CzoTSJTd3YJ3.
Or is my way of using crypt(3) wrong in some way?
Thanks and regards,
Juay Kwang
To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-questions" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?Pine.GSO.4.10.9910071535020.28337-100000>
