
#include "md5.h"

#include <stdio.h>

int main(int argc, char **argv)
{
	int i;
	for (i = 1; i < argc; i++)
	{
		md5_t md5;
		if (md5_process_file(&md5, argv[i]) == -1)
		{
			printf("Could not process file \"%s\".\n", argv[i]);
			continue;
		}
		char md5str[33];
		md5_to_string(md5, md5str);
		printf("%s\t%s\n", md5str, argv[i]);
	}
	return 0;
}

