RE: MD5 not returning hash for string ending with "."

2005-07-19 Thread Milan Tomic
Re: MD5 not returning hash for string ending with "." > > > Hi Ken, > > Yes, hash can contain printable as well as > nonprintable chars.As I mentioned this code > was working with other strings and giving > correct hash length(16).To eliminate this > issue,

Re: MD5 not returning hash for string ending with "."

2005-07-19 Thread kaustubh mendki
Hi Ken, Yes, hash can contain printable as well as nonprintable chars.As I mentioned this code was working with other strings and giving correct hash length(16).To eliminate this issue, i converted these chars to hex. Now code look like this: #include #include "openssl/md5.h" void hexprint(uns

Re: MD5 not returning hash for string ending with "."

2005-07-19 Thread Ken Goldman
> Date: Tue, 19 Jul 2005 04:30:03 -0700 (PDT) > From: kaustubh mendki <[EMAIL PROTECTED]> > > I am trying a simple program to get MD5 hash of > any string.The program is as follows: > > #include > #include "openssl/md5.h" > > int main() > { > unsigned char var[]="k."; > unsigne

MD5 not returning hash for string ending with "."

2005-07-19 Thread kaustubh mendki
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 #include "openssl/md5.h" int main() { unsigned char var[]="k."; unsigne