md5sum is a computer program that calculates and verifies 128-bit MD5 hashes, as described in RFC 1321.
Questions tagged [md5sum]
329 questions
2
votes
1 answer
How to calculate MD5 checksum of blob using JQuery
My requirement is to upload large files (upto 50GB) through browser. So I used JQuery file upload plugin to upload those large files in smaller chunks.
Now I have to calculate MD5 checksum for each chunk to avoid data corruption issues from browser…

Awesome
- 5,689
- 8
- 33
- 58
2
votes
1 answer
How to add md5 sum to file metadata on a Linux file-system for the purpose of search and de-duplication?
I have a large number of files that occasionally have duplicates that have different names and would like to add a fslint like capability to the file system so that it can be de-duplicated and then any new files created in specified locations be…

Daniel Matthews
- 21
- 3
2
votes
2 answers
bash - hash binary contents of variable without creating a file
I am trying to obtain the hash of the contents stored in a variable created from a curl statement without outputting the curl into a file.
Basically I am trying to avoid:
curl website.com/file.exe >> tempfile.bin
md5sum tempfile.bin
The above…

Onitsoga
- 37
- 7
2
votes
1 answer
Differential backup issue using comparison with md5sum in shell script
Hello I have a quick question. I am trying to implement a differential backup but where I am having trouble is comparing the hash from md5sum.txt to diffmd5.txt
I am getting the following error:
Currently the command runs and gives no errors but…

Dmitriy
- 97
- 3
- 15
2
votes
1 answer
Creating a shell script to traverse a file system and hash every file
I need to create a shell script that will traverse my entire file system, hash each file, and write it into a text database.
I will be doing this on Ubuntu 12.04 and using md5sum and, if we are being honest here, I don't even know where to begin.…

Overlord
- 21
- 2
2
votes
2 answers
Is there any way to get a consistent MD5 Hash from a maven build?
I can run the same maven build 5 times in a row on a group of jar/war files, without any changes to any of them, and yet I get a different MD5 hash on each of the jar/war files each time. I would expect the java compiler to produce the same hash…

user1209809
- 108
- 9
2
votes
4 answers
Create md5sum in C
Im trying to use the md5sum command in a C program, right now im using dirent.h to get all the files in a folder, now, I want to get all the md5 of all those files, I am doing this:
#include
#include
#include…

Hook
- 391
- 5
- 16
2
votes
1 answer
bash, md5sum behaves strange
Why is this different?
text="tralala"
echo -n $text | md5sum -
result: def7d827536761c20f449f69262ff20f
echo -n "tralala" | md5sum -
result : 7e4ef92d1472fa1a2d41b2d3c1d2b77a
what am I doing wrong?
user1986815
2
votes
2 answers
hexdigest generating different values in linux and windows for same file
I am using Digest::MD5 module and in that hexdigest returning different value for windows and linux.
please help me in solving the issue.
use Digest::MD5;
my $ctx=Digest::MD5->new();
open RD, "input.txt";
$ctx->addfile(*RD);
close RD;
print…

Saravanan
- 119
- 10
2
votes
3 answers
Using sed to add a space
I need to add a space between the md5sum and the file name. So my current output is:
1be9df543bb5fa37c4b53f0401072f98 file.xml
And I need it to be:
1be9df543bb5fa37c4b53f0401072f98 file.xml
I am a mess with regex/sed but this is what I have and…

cakes88
- 1,857
- 5
- 24
- 33
2
votes
2 answers
Perl combine MD5 / SHA2 sum from multiple files to a MD5 / SHA2 sum
Below is the code which generates MD5 / SHA2 sum of individual files present under directory or sub directories recursively.
#!/usr/bin/perl -w
use strict;
use warnings;
use File::Find;
use IO::File;
use Digest::MD5;
use Digest::SHA…

Abhinav
- 975
- 4
- 18
- 35
2
votes
1 answer
BASH: dealing with duplicates using md5sum
I managed to separate hash from file path while finding duplicates in my directory. My next task is to print only the duplicates (ex: 3 files, 2 duplicates).
What I did so far is placing the output in an array like this:
arr=( $(find $1 -type f…

Atieh
- 230
- 2
- 16
2
votes
2 answers
Why is MD5Sum so fast
I've been studying hashing in C/C++ and tried to replicate the md5sum command in Linux. After analysing the source code, it seems that md5sum relies on the md5 library's md5_stream. I've approximated the md5_stream function from the md5.h library…

MagikWorx
- 342
- 1
- 10
2
votes
2 answers
How to XOR md5 hash values and cast them to HEX in postgresql
What I have tried so far
SELECT md5(text) will return text (hex strings) .
After that We need to xor them
SELECT x'hex_string' # x'hex_string';
But the above results in binary values.
How do I again convert them into hex string?
Is…

Shankar
- 846
- 8
- 24
2
votes
1 answer
MD5 Script and grep cmd
I found this neat little script on the Ubuntu website. The script verifies
contents of CD by comparing it to an MD5 sum of an iso(9660) file. I don't
understand why the script parses the string after the md5 sum is computed.
CSUM1=$(CHECKSUM "$1" |…

LogicalConfusion
- 263
- 1
- 4
- 10