Hi, I have been loking into this forum for an answer to my problem and have not found the right answer, though I have found a lot of usefull information.
When a type this command: openssl dgst -md5 sometextdata.txt it gives an answer XYZ but using this code en visual c++: const unsigned char data[]="text from file: sometextdata.txt"; unsigned char md[MD5_DIGEST_LENGTH]; MD5(data, strlen(data), md); it gives ABC as result. Why the differences? The value that I need and is right it is the one that I get from the command line. How to get the same result programming? Thanks in advance for your answers Luis Hernandez lu_her...@hotmail.com -- View this message in context: http://old.nabble.com/command-line-resul-ok-but-not-c%2B%2B-code-tp30849236p30849236.html Sent from the OpenSSL - User mailing list archive at Nabble.com. ______________________________________________________________________ OpenSSL Project http://www.openssl.org User Support Mailing List openssl-users@openssl.org Automated List Manager majord...@openssl.org