crypt() woes - error in man page?

2000-10-18 Thread Peter Jay Salzman
i think there's an error in the man page for crypt()... usage: char *crypt(const char *key, const char *salt); from the man page: salt is a two-character string chosen from the set [a-zA-Z0-9./]. This string is used to perturb the algo- rithm in one of

Re: crypt() woes - error in man page?

2000-10-18 Thread Hubert Chan
Peter Jay Salzman [EMAIL PROTECTED] writes: #includestdio.h #includecrypt.h int main(int argc, char *argv[]) { char salt1[] = ab; char salt2[] = $1$12345678; char key[] = password;/* :-) */ char *pass1

Re: crypt() woes - error in man page?

2000-10-18 Thread Adam Lazur
Peter Jay Salzman ([EMAIL PROTECTED]) said: i think there's an error in the man page for crypt()... usage: char *crypt(const char *key, const char *salt); [snip] char *pass1 = crypt(salt1, key); char *pass2 = crypt(salt2, key); should be: