Back to index

glibc  2.9
md5c-test.c
Go to the documentation of this file.
00001 #include <crypt.h>
00002 #include <string.h>
00003 
00004 int
00005 main (int argc, char *argv[])
00006 {
00007   const char salt[] = "$1$saltstring";
00008   char *cp;
00009   int result = 0;
00010 
00011   cp = crypt ("Hello world!", salt);
00012   result |= strcmp ("$1$saltstri$YMyguxXMBpd2TEZ.vS/3q1", cp);
00013 
00014   return result;
00015 }