Checksum different For Same file Created By Two processes


 
Thread Tools Search this Thread
Operating Systems Solaris Checksum different For Same file Created By Two processes
# 8  
Old 02-13-2016
Quote:
Originally Posted by fpmurphy
Yes. You will only get the same hash if both files are IDENTICAL in every way.
That's not STRICTLY correct, as any hash function effectively "compresses" data down to a fixed number of bits so there have to be collisions where different data produces identical hash results.

Hash functions try to make it impossible to modify data in ways to predictably produce a hash result identical to the result from the unmodified data. (Which is why when that protective ability is cracked, that hash function gets abandoned for more secure ones. FWIW, cracks started appearing in md5 a long time ago and now it's effectively completely cracked. It's still useful for comparing data, though it's not really secure to validate it any more.)

So to be STRICTLY correct, when the hash results differ then the data differs. If the hash results are the same you need to check if the data differs.

(Yes, I've been spending a lot of time recently dealing with cryptography and hashes for a customer...)
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. UNIX for Beginners Questions & Answers

Need UNIX script to check checksum and dummy file creation.

Hi Folks, I need a UNIX script which will copy files(Table wise) from source directory to destination directory (Under table directory) and also creates 2 additional files after getting copied to destination directory with extension .pdy and .ldy , . pdy file will be zero byte file should get... (4 Replies)
Discussion started by: Nicks1412
4 Replies

2. Shell Programming and Scripting

How to perform checksum of a file on remote server using Curl?

Hi, We have an AIX server and have CURL 7.40 installed in it. We are struggling to perform checksum on the file present on the remote server (AWS). We want to validate the checksum on the file pre and post download to make sure that there is no issue with the file. We are writing a shell... (0 Replies)
Discussion started by: Sanjay_13
0 Replies

3. Shell Programming and Scripting

Changing file permissions of a file created by another user

Hi, I have used expdp for datapump. The .dmp file is created by the "oracle" user. my requirement is to make a zipped file of this .dmp file. What i am trying to do is change the permissions of this .dmp file from 0640 to 0644 and then do a gzip and zip it. Is there any way i can change... (3 Replies)
Discussion started by: qwertyu
3 Replies

4. Shell Programming and Scripting

Needed script to FTP a File and generate a quality checksum file

hi all i want a script to FTP a file and should generate a quality checksum file means when I FTP a file from one server to another server it should generate a QC file which should contain timestamp,no.of records in that file Thanks in advance saikumar (3 Replies)
Discussion started by: hemanthsaikumar
3 Replies

5. IP Networking

Wireshark UDP checksum bad checksum

Hello I am communicating with two devices using my computer over UDP protocol. The application is running fine. When I monitored the UDP traffic using Wireshark software, I found that there were too many Checksum errors. Please find attached the png file showing this error. I am about to... (0 Replies)
Discussion started by: AustinCann
0 Replies

6. Shell Programming and Scripting

Get filesize and checksum of spooled file in a log file ...

Hi All, I have spooled some data in a file (a.dat, b.dat etc..) and after that I want to get the size and checksum of spooled file (a.dat, b.dat etc..) in a log file(file_info.log). By the way I dont want lost the previous output file info(Append data). View of log file that I want to... (5 Replies)
Discussion started by: ce_emre21
5 Replies

7. Homework & Coursework Questions

how to delete core file (file created due to apps crashed)

1. The problem statement, all variables and given/known data: When looking for corefiles, include any file with core in its name. (Some UNIX/Linux systems add the PID of the process that created the core to reduce the chances of overwriting an already existing core file that might be needed. The... (6 Replies)
Discussion started by: s3270226
6 Replies

8. Shell Programming and Scripting

will child processes be created when executing "ps"?

Hi I'm trying to write some code to confirm there is only one running instance in memory like below: /usr/ucb/ps -auxww | egrep -v 'grep |vi |tail |more |cat ' | egrep ${SCRIPT_NAME} | egrep -v " \-h| \-help| \-v" But sometimes i found there is some child processes are are created as... (4 Replies)
Discussion started by: sleepy_11
4 Replies

9. UNIX for Advanced & Expert Users

Checksum with file permissions and dates ?

find . \! -type p -exec cksum {} \; >> check.out Okay i was able to get the checksum of the files of the directory and sub directories..how do I get the list with the checksum and the file permissions and dates in the same file...now this is driving me crazy...can anyone help me with this ? ls... (3 Replies)
Discussion started by: moe458
3 Replies

10. Programming

UDP File Transfer Validation and Checksum

Dear All I have written a client server program for file transmission from one system to other using UDP. Can i use the cksum number in the udp header to validate if the received packet is corrupted or not? If yes, how can i extract the header and validate it.. Also is there any way that... (3 Replies)
Discussion started by: iamcollins
3 Replies
Login or Register to Ask a Question
circle(3alleg4) 						  Allegro manual						   circle(3alleg4)

NAME
circle - Draws a circle. Allegro game programming library. SYNOPSIS
#include <allegro.h> void circle(BITMAP *bmp, int x, int y, int radius, int color); DESCRIPTION
Draws a circle with the specified centre and radius. SEE ALSO
ellipse(3alleg4), arc(3alleg4), circlefill(3alleg4), do_circle(3alleg4), drawing_mode(3alleg4), makecol(3alleg4), ex12bit(3alleg4), exblend(3alleg4), excustom(3alleg4), exjoy(3alleg4), exmem(3alleg4), exmouse(3alleg4), exquat(3alleg4), exsprite(3alleg4) Allegro version 4.4.2 circle(3alleg4)