Hi, I don't know if anyone earlier posted similar message earlier..If so apologise me for repetition. I am trying a simple program to get MD5 hash of any string.The program is as follows:
// try.c #include <stdio.h> #include "openssl/md5.h" int main() { unsigned char var[]="k."; unsigned char *op; op = MD5(var,strlen(var),NULL); printf("\nHash= %s\tLen= %d",op, strlen(op)); return 0; } I compiled it with: gcc -lcrypto -o try try.c The above code is returning empty hash with 0 length. But with strings like ".", "k.a" this code is working properly. Can anyone throw light on it? Thanks in advance, Kaustubh ____________________________________________________ Start your day with Yahoo! - make it your home page http://www.yahoo.com/r/hs ______________________________________________________________________ OpenSSL Project http://www.openssl.org User Support Mailing List openssl-users@openssl.org Automated List Manager [EMAIL PROTECTED]