MD5 algorithm
From: dwij (dwijaggarwal@yahoo.com)Date: 03/28/02
- Next message: Tim Tassonis: "Re: ssh 1.2.1 Root compromise"
- Previous message: Tim Haynes: "Re: unexpected ICMP host unreachable - no worries?"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]
From: dwijaggarwal@yahoo.com (dwij) Date: 28 Mar 2002 02:57:49 -0800
hi
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>
main()
{
const unsigned char *d = "password";
unsigned char *md;
unsigned long n;
MD5_CTX *c;
MD5_Init(c);
MD5_Final(md,c);
md = (unsigned char *)malloc(100);
MD5(d,n,md);
printf("%s",md);
}
i am getting error like undefined reference to MD5 even though i have
use the command gcc -lmd5 ... to compile.
dwij
- Next message: Tim Tassonis: "Re: ssh 1.2.1 Root compromise"
- Previous message: Tim Haynes: "Re: unexpected ICMP host unreachable - no worries?"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]
Relevant Pages
|