Re: command line resul ok but not c++ code

2011-02-08 Thread lu_hernan
Thank you. Matej Kurpel wrote: > > On 5. 2. 2011 16:31, lu_hernan wrote: >> Thank you for answering. >> >> The file does not include any CR or LF but I have noticed that is saved >> in >> UTF-8. Does it has anything to do with the problem? > Maybe. Some UTF-8 files can contain a Byte Order Mark

Re: command line resul ok but not c++ code

2011-02-05 Thread Matej Kurpel
On 5. 2. 2011 16:31, lu_hernan wrote: Thank you for answering. The file does not include any CR or LF but I have noticed that is saved in UTF-8. Does it has anything to do with the problem? Maybe. Some UTF-8 files can contain a Byte Order Mark (or BOM) which consists of 3 bytes at the very begi

RE: command line resul ok but not c++ code

2011-02-05 Thread lu_hernan
Thank you for answering. The file does not include any CR or LF but I have noticed that is saved in UTF-8. Does it has anything to do with the problem? If I read the file with a program with the code below the result is the same as the command line but, if I take the content of a file and put it

RE: command line resul ok but not c++ code

2011-02-04 Thread Dave Thompson
> From: owner-openssl-us...@openssl.org On Behalf Of lu_hernan > Sent: Friday, 04 February, 2011 19:14 > 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_D