MD5 algorithm

From: dwij (
Date: 03/28/02

From: (dwij)
Date: 28 Mar 2002 02:57:49 -0800

i want to encode a string using MD5 algorithm.
can anybody give me the code.
what are the header files needed?

in my programme:

#include <md5global.h>
#include <openssl/md5.h>

        const unsigned char *d = "password";
        unsigned char *md;
        unsigned long n;
        MD5_CTX *c;
        md = (unsigned char *)malloc(100);

i am getting error like undefined reference to MD5 even though i have
use the command gcc -lmd5 ... to compile.