aboutsummaryrefslogtreecommitdiff
path: root/src/old/tests/md5test.cpp
blob: 6f832df5da0e2d7c1d1db43e7aa150909d53dcf8 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
#include <stdio.h>
#include <string.h>
#include "md5.h"

int main()
{
	md5 mproc;
	md5sum sum;
	char hexstr[33];

	memset( hexstr, 0, 33 );

	mproc.sumString( &sum, "qwertyuiopasdfgh" );
	mproc.sumToHex( &sum, hexstr );
	printf("sum: %s\n", hexstr );
	printf("chk: 1ebfc043d8880b758b13ddc8aa1638ef\n");

	return 0;
}