summary refs log tree commit diff
path: root/md5-crypt/md5c-test.c
blob: f56d0eb4ab68628ce59cc6984eb949fedc1f4c7d (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
#include <crypt.h>
#include <string.h>

int
main (int argc, char *argv[])
{
  const char salt[] = "$1$saltstring";
  char *cp;
  int result = 0;

  cp = crypt ("Hello world!", salt);
  result |= strcmp ("$1$saltstri$YMyguxXMBpd2TEZ.vS/3q1", cp);

  return result;
}