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
java md5 is slow in javaagent mode
public static void main(String[] args) {
File f = new File(args[0]);
System.out.println("1: " + DownloadUtils.getMD5(f));
System.out.println("2: " + DownloadUtils.getMD5InJava(f));
System.out.println("3: " +…

twogoods
- 1,646
- 2
- 14
- 21
2
votes
1 answer
Comparing the MD5 sum of a string to the contents of a file
I am trying to compare a string (in memory) to the contents of a file to see if they are the same. Boring details on motivation are below the question if anyone cares.
My confusion is that when I hash file contents, I get a different result than…

seth127
- 2,594
- 5
- 30
- 43
2
votes
1 answer
azure Blob MD5 checksum and local MD5 checksum not matching
my file test.txt contains
checksum test file
when I upload into blob its md5 is
CONTENT-MD5 cvL65GNcvWFoqZUTI5oscw==
when I run in local md5Sum test.txt its value is
72f2fae4635cbd6168a99513239a2c73

gavisic
- 59
- 1
- 7
2
votes
2 answers
Compare md5 of all files in directory excluding multiple hardlinks
I tend to ramble, so I apologise in advance if a bid to cut the chaff leads to less context (or I just fail miserably and ramble nonetheless).
I'm trying to improve some tools I wrote for rsyncing a large amount of data from one network storage…

Owen Morgan
- 301
- 3
- 9
2
votes
1 answer
Script to determine directory 'diff'
I have two directories which are different versions of the same software package. I'd like to list all the files/directories that have changed between the two then copy those differences to a new directory.
I've been trying different scripts with…

Rich
- 12,068
- 9
- 62
- 94
2
votes
2 answers
Create separate MD5 file for each file recursively
I've been wanting to keep an eye on my file storage, and watch for files that get corrupted over time.
To that end, I'm trying to write a Linux bash / shell script to recurse through a directory and create an MD5 hashsum file for each file, in the…

towerofpower256
- 23
- 6
2
votes
2 answers
How to generate a valid password hash for a .htpasswd file in Terraform?
How to generate a valid password hash for a given password for a .htpasswd file in Terraform?
Meaning: How to execute the following command using a Terraform plugin/ module:
echo "MYUSERNAME:$( openssl passwd -apr1 MYPASSWORD )" > .htpasswd
Other…

iptizer
- 1,088
- 1
- 10
- 19
2
votes
1 answer
Aws S3 etag not matching md5 after KMS encryption
All- We are working on migrating some confidential & regulatory information from Local UNIX file system to S3.
The files are copied using AWS EC2 instance into S3 using "aws s3 cp--sse aws:kms --sse-kms-key-id....... " command.
What i have noticed…

Richard
- 381
- 2
- 4
- 22
2
votes
0 answers
Python Md5 Hashing, trailing newline when reading file
I am experiencing unexpected behavior with file-reading and hashing (in Python 3.7).
I have a file that simply has the text "helloworld" in it, without a newline at the end:
>>hexdump -C input.txt
00000000 68 65 6c 6c 6f 77 6f 72 6c 64 0a …

feob
- 1,930
- 5
- 19
- 31
2
votes
3 answers
Unix md5sum vs Powershell Get-hash
I am trying to generate md5 hash from Powershell. I installed Powershell Community Extension (Pscx) to get command : Get-Hash
However when I generate md5 hash using Get-Hash, it doesn't seem to match the hash generated using md5sum on an Ubuntu…

Jigar
- 23
- 5
2
votes
2 answers
What is the fastest way to load the MD5 of an file?
I want to load the MD5 of may different files. I am following this answer to do that but the main problem is that the time taken to load the MD5 of the files ( May be in hundreds) is a lot.
Is there any way which can be used to find the MD5 of an…

Rahulrr2602
- 701
- 1
- 13
- 34
2
votes
1 answer
Is this comparison dummy?
In the RFC1321
I notice this piece of code:
if ((context->count[0] += ((UINT4)inputLen << 3)) < ((UINT4)inputLen << 3))
context->count[1]++;
context->count[1] += ((UINT4)inputLen >> 29);
I don't understand the comparison:
((UINT4)inputLen <<…

nowox
- 25,978
- 39
- 143
- 293
2
votes
1 answer
md5 implementation for non-byte addressable arch?
The common implementation for MD5 is given by RFC1321. Where the MD5Update function receive a pointer to chars.
My architecture, a SHARC ADSP-21371, is not byte adressable which means:
sizeof(int32_t) == 1
Thus I cannot really use this algorithm…

nowox
- 25,978
- 39
- 143
- 293
2
votes
0 answers
Debian packaging - Why MD5sums changed?
I have an application consisting in two differents war plus some conf files that i'm packaging in a debian package.
When i'm typing "md5sum warname.war" in a console i have a md5sum hash that is different than the md5 of the same file in the…

Zaitchev
- 41
- 3
2
votes
3 answers
Listing md5sum for all files: find command with xargs?
I'm using the command below to generate a list of files and their m5sum. The problem is that some of the files or folders have spaces in the name. How would I handle those?
find -type f -name \* | xargs md5sum

iheartcpp
- 371
- 1
- 5
- 14