LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.

Notices

Reply
 
Search this Thread
Old 03-24-2008, 03:26 AM   #1
return.c
LQ Newbie
 
Registered: Mar 2008
Distribution: Fedora
Posts: 11

Rep: Reputation: 0
md5/sha1 Openssl libraries gives different output for binary files


I am using OpenSSL libraries (md5/sha1) for my security application, where I need to find out hash values for files in a directory. I am comparing my program's output with linux commands md5sum and sha1sum. For text files I am getting correct results, where in for binary files (like .tar.gz, .out) I am getting different hash values from both md5sum/sha1sum commands and my own program. I have tried to figure out the problem, but failed. What could be the problem ?
I am writing this application in C++.

Last edited by return.c; 03-24-2008 at 03:28 AM.
 
Old 03-24-2008, 12:27 PM   #2
osor
HCL Maintainer
 
Registered: Jan 2006
Distribution: (H)LFS, Gentoo
Posts: 2,450

Rep: Reputation: 70
Well, how are we supposed to know if you donít show us any of your code?
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Compiling ns2 with openssl libraries zWaR Programming 3 10-01-2012 06:02 AM
how to see which libraries a binary program needs r00tb33r Linux - Software 4 02-23-2008 05:22 AM
gcc: libraries for copying files, ftp, data output ? frenchn00b Programming 2 08-29-2007 01:26 PM
Help with this please > openssl/md5.h: No such file or directory bigbadbo Linux - Software 1 03-23-2007 03:39 AM
password hash storage (md5, sha1...) aneroid Programming 6 12-30-2005 10:27 PM


All times are GMT -5. The time now is 08:38 PM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration