Questions tagged [md5sum]

md5sum is a computer program that calculates and verifies 128-bit MD5 hashes, as described in RFC 1321.

329 questions
3
votes
2 answers

Batch file to convert text to md5sum value

I need to create an windows "batch" file with following conditions. Convert the text to md5sum value I tried with below .bat file. But not working @echo off setlocal ENABLEDELAYEDEXPANSION set hashmd5=$(echo -n welcome1 | md5sum | cut -c…
munna
  • 31
  • 1
  • 2
3
votes
1 answer

Python wheel: same source code but different md5sum

We need to check the md5sum of self made python packages, actually taking it from resulting *.whl file. The problem is that the md5sum changes on every build, even if there no changes in source code. Also we have tested this on third party packages,…
ilov3
  • 427
  • 2
  • 7
3
votes
0 answers

rpm's --dump is not returning the same md5sum

The rpm man page says the --dump option returns "MD5 checksum of the file's contents, all 128 bits of it." Yet an md5sum of the same file returns a different sum. # rpm -qf /bin/gawk gawk-3.1.7-10.el6.x86_64 # rpm -ql --dump…
user2569618
  • 517
  • 3
  • 16
  • 42
3
votes
1 answer

Getting a different MD5 check sum for the same file which is saved in different folder

I'm trying to download .apk files from the android emulator and calculate it's md5 check sum.I made an interesting observation here!! Everytime i download a .apk file into the same folder the md5 check sum value remains the same. When I download…
mohan babu
  • 1,388
  • 2
  • 17
  • 35
3
votes
3 answers

What is an efficient way in C# of doing MD5 and download all at once?

I'm working on download and then MD5 check to ensure the download is successful. I have the following code which should work, but isn't the most efficient - especially for large files. using (var client = new System.Net.WebClient()) …
davidpricedev
  • 2,107
  • 2
  • 20
  • 34
3
votes
2 answers

Python gzip omit the original filename and timestamp

Folks, I am generating an md5sum of a gzip file. Technically, each time its compressing the same file, but the resulting md5sum is different. How do I tell it to use the -n flag to omit the original filename and timestamp? f_in = open(tmpFile,…
Cmag
  • 14,946
  • 25
  • 89
  • 140
3
votes
1 answer

Get md5 checksum of a file from S3

I'm running a rails application which serves zip files to android and ios devices. These zip files are stored in S3 and vary between 10MB and 50MB. The challenge is, sometimes when the user downloads the zip file from Android, the download stops…
skmvasu
  • 3,098
  • 3
  • 24
  • 29
3
votes
3 answers

How could I write a Perl script to calculate the MD5 sum of every file in a directory?

Is there any way to write a Perl script to calculate the MD5sum of every file in a directory? If so, how could I do this?
user2756257
3
votes
1 answer

Upload to Amazon S3 with Amazon PHP SDK 2 - MD5 error on same file, everytime

I have a PHP app that uploads videos (from little ones - 1MB - to big ones - 400MB). Everything works fine, except for some particular files. These files always presents a MD5 checksum error: WS Error Code: BadDigest, Status Code: 400, AWS Request…
Eduardo Russo
  • 4,121
  • 2
  • 22
  • 38
3
votes
1 answer

MD5 progress output - BASH

I got a simple MD5SUM script in the works. Its pretty much done except for the part that displays the progress (percent of the file that's been calculated to the user). I'm thinking of using a while loop w/ a dummy variable that checks if the MD5…
LogicalConfusion
  • 263
  • 1
  • 4
  • 10
3
votes
2 answers

Why does MD5 Hash For FileStream and String Differ C#

I generate a MD5 Hash from a String and from a File Containing the Same String using System.Security.Cryptography.MD5. However the Hash Values Differ. Here is the code to generate from a string byte[] data = Encoding.ASCII.GetBytes("The quick brown…
SneakyPeet
  • 607
  • 5
  • 14
3
votes
3 answers

How to generate MD5 Hash value that Hashes to itself?

Is it possible to generate a text file, the content of which is the file's hash/md5 value. How to write the program?
Steven You
  • 439
  • 5
  • 13
2
votes
2 answers

convert plain-text password to MD5 salted hash

For example under FreeBSD passwords are stored in /etc/master.passwd like this: $1$7wtGfwgp$772bEQInetnJKUNtLM0Xt/ The password I used was "Test11". As I understand, $1$ means that it's a hashed MD5 crypt? How can one come up with the final hash…
Martin
  • 957
  • 7
  • 25
  • 38
2
votes
1 answer

different md5sum for the same file content?

I have an issue with computing md5sum. I have a recover tool -which archives file's metadata (inode) and also computes md5sum of them file(s) and stores them in sqlite db during installation. When the file gets removed/deleted . the tool recovers…
webminal.org
  • 44,948
  • 37
  • 94
  • 125
2
votes
1 answer

How do I create a recursive file list with md5sum in Linux and output to csv

I would like to list the files (ideally with an md5sum) within a directory and subdirectories in Ubuntu and output the results to a csv file. I would like the output to be in the following format. File Name, File Path, File Size (bytes), Created…
simonc
  • 87
  • 7