9 /* Hashed form of "GNU libc manual". */
10 const char *const pass
= "$1$/iSaq7rB$EoUw5jJPPvAPECNaaWzMK/";
16 /* Read in the user's password and encrypt it,
17 passing the expected password in as the salt. */
18 result
= crypt(getpass("Password:"), pass
);
21 /* Test the result. */
22 ok
= strcmp (result
, pass
) == 0;
24 puts(ok
? "Access granted." : "Access denied.");