/* Collection of code snippets by Arne Vajhøj */
/* (likely posted to comp.os.vms/INFO-VAX, INFO-TPU, MACRO32, eksperten.dk, newz.dk, LinkedIn or other place sometime between 1990 and now) */
#include <stdio.h>
#include <string.h>

#include "MD5.h"

int main()
{
    MD5_CTX ctx;
    int i;
    char *tst = "Dette er en lille test";
    char md5[16];
    MD5Init(&ctx);
    MD5Update(&ctx, tst, strlen(tst));
    MD5Final(md5, &ctx);
    for(i=0;i<16;i++)
    {
        printf("%02x",(unsigned char)md5[i]);
    }
    printf("\n");
    return 0;
}
