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
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
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:
3 matches
Mail list logo