md5sum is a computer program that calculates and verifies 128-bit MD5 hashes, as described in RFC 1321.
Questions tagged [md5sum]
329 questions
8
votes
4 answers
Compare checksum of files between two servers and report mismatch
I have to compare checksum of all files in /primary and /secondary folders in machineA with files in this folder /bat/snap/ which is in remote server machineB. The remote server will have lots of files along with the files we have in machineA.
If…

user1950349
- 4,738
- 19
- 67
- 119
8
votes
3 answers
Print md5sum of results of a find command in Linux
I am tryng to do checksum on all .jar files I can find in directory and its sub directories. Then print the filename with the checksum value to a file.
this is what I have.
md5sum | find -name *.jar >result.txt
I am trying to join two commands…

James Mclaren
- 666
- 4
- 10
- 25
6
votes
4 answers
Comparing content of 2 files with md5sum
How can I compare the md5 sums for 2 files in one command?
I can compute them each individually:
my_prompt$ md5sum file_1.sql
20f750ff1aa835965ec93bf36fd8cf22 file_1.sql
my_prompt$ md5sum file_2.sql
733d53913c366ee87b6ce677971be17e …

Gustav Rasmussen
- 3,720
- 4
- 23
- 53
6
votes
1 answer
What is the difference between md5sum and cksum
Can someone explain what is the difference between md5sum and cksum, when I compare 2 binary files.
One difference I know is cksum gives the number of "bytes" also along with the checksum value, which md5sum doesn't give.
But my question is to…

dig_123
- 2,240
- 6
- 35
- 59
5
votes
1 answer
md5 hash calculation function failing
I'm trying to write an md5 hash function in R without calling any C-routines. While my code executes just fine, the output never matches tools::md5sum (which does match examples provided in various online documents). I suspect a byte-order (or…

Carl Witthoft
- 20,573
- 9
- 43
- 73
5
votes
4 answers
how to create archive whose keep same md5 hash for identical content in Python?
As explain in this article https://medium.com/@mpreziuso/is-gzip-deterministic-26c81bfd0a49 the md5 of two .tar.gz files that are the compression of the exact same set of files can be different. This is because it, for example, includes timestamp in…

Sophie Jacquin
- 194
- 2
- 10
5
votes
1 answer
`md5sum -c` won't work with Apache's MD5 file format
Let me take you on a journey..
I'm trying to download and verify Apache Spark (http://www.apache.org/dist/spark/spark-1.6.0/spark-1.6.0-bin-hadoop2.6.tgz) via MD5 on a fresh Debian (Jessie) machine.
The md5sum script already existed on that machine…

Bilal Akil
- 4,716
- 5
- 32
- 52
5
votes
2 answers
parallel check md5 file
I have a md5sum file containing lots of lines. I want to use GNU parallel to accelerate the md5sum checking process. In the md5sum, when no file input, it will take the md5 string from stdin. I tried this:
cat checksums.md5 | parallel md5sum -c…

Ken
- 3,922
- 9
- 39
- 40
5
votes
1 answer
Expected performance of MD5 calculation in javascript?
I am trying out calculation of MD5 using javascript and looking at
fastest MD5 Implementation in JavaScript post 'JKM' implementation is suppose to be one of the faster implementations. I am using SparkMD5 which is based of off JKM implementation.…

Nickolay Kondratyev
- 4,959
- 4
- 25
- 43
5
votes
2 answers
How do you verify that 2 copies of a VB 6 executable came from the same code base?
I have a program under version control that has gone through multiple releases. A situation came up today where someone had somehow managed to point to an old copy of the program and thus was encountering bugs that have since been fixed. I'd like…

Tim Visher
- 12,786
- 16
- 58
- 66
5
votes
1 answer
How to update hashlib.md5 hasher using existing hasher in python?
I have got cached instance of hasher:
m1 = hashlib.md5()
m1.update(b'very-very-long-data')
cached_sum = m1
and I would like to update external hasher with a sum cached before:
def append_cached_hash(external_hasher):
# something like this
…

Andrew
- 2,055
- 2
- 20
- 27
4
votes
2 answers
How can I get a file checksum in Deno?
Just starting with Deno, I am trying to figure out how to calculate a binary file checksum. It seems to me that the problem is not with the methods provided by the hash module of the standard library, but with the file streaming method and/or the…

mre
- 95
- 1
- 7
4
votes
4 answers
Python MD5 Hash comparison in Python 3.2
I am trying to validate two files downloaded from a server. The first contains data and the second file contains the MD5 hash checksum.
I created a function that returns a hexdigest from the data file like so:
def md5(fileName):
"""Compute md5…

David
- 14,205
- 20
- 97
- 144
4
votes
2 answers
md5 in http with range
Imagine a user asks for Rage: bytes=2-5 of a 10-byte file. What MD5 sum has to be served to the user? The MD5 sum of all 10 bytes or only of the partial content, bytes 2-5?
RFC2616 Section 14.15 reads:
The MD5 digest is computed based on
the…

niklasfi
- 15,245
- 7
- 40
- 54
4
votes
4 answers
md5sum output only hash in file
hi I want to create a bash file on linux, which checks the md5 hash of a file against a backup md5 hash, so i know if the original file has been tampered with. The script should output the md5 hash of two files and than compare the two created hash…

MadMax
- 143
- 4
- 14