#include<stdio.h>
#include<openssl/md5.h>
#include<string.h>
int main( int argc, char **argv )
{
unsigned char *data = "123";
unsigned char md[16];
int i;
char tmp[3]={' '},buf[33]={' '};
MD5(data,strlen(data),md);
for (i = 0; i < 16; i++)
{
sprintf(tmp,"%2.2x",md[i]);
strcat(buf,tmp);
}
printf("%s
",buf);
return 0;
}