Questions tagged [md5sum]

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

329 questions
4
votes
2 answers

MD5 Hash, Python 3 . How to Generate In Python

I need advice on how to get the md5 hash for a zip file. I will be constantly downloading files from an ftp using ftplib. As you know ftplib cannot tell if a file has been modified or not. I want to use the md5 hash of each new file to tell if it…
Mo. Atairu
  • 753
  • 8
  • 15
4
votes
2 answers

Is it possible to simultaneously pipe the output of a tar command to a split command and md5sum check?

I have a compression command which I pipe to a md5sum check command as such: tar zcvpf file.tar.gz file | xargs -I '{}' bash -c "test -f '{}' && md5sum '{}'" | tee file_mybackup.md5 I would now like to split the tar.gz file into 100MB chunks. I…
user1977981
  • 189
  • 1
  • 12
4
votes
5 answers

fast md5sum on millions of strings in bash/ubuntu

I need the MD5 sums of 3 million strings or so in a bash script on ubuntu. 3 million strings -> 3 million MD5 hashes. The trivial implementation takes about 0.005sec per string. That's over 4 hours. What faster alternatives exist? Is there a way to…
Oren Trutner
  • 23,752
  • 8
  • 54
  • 55
4
votes
1 answer

How many times can i compose a md5 function with itself?

For studying purposes it would be usefull to find out how many times can i compose a md5 function with itself without getting the same value. This is a paralell/complementary approach to the salt, because this way the value gets harder to crack…
András Gyömrey
  • 1,770
  • 1
  • 15
  • 36
4
votes
3 answers

get checksum of files inside tar archive on remote host

I succeed to obtain the md5sum of files inside archive without using file system thanks to : tar tjf '/home/adup/mybackup.tar.bz2' | sort | grep -v '/$' | ( while read filename; do md5=$(tar xjOf '/home/adup/mybackup.tar.bz2' $filename | md5sum…
ad_igs
  • 63
  • 1
  • 5
4
votes
2 answers

Bash get md5sum of all files in a folder

Hi I'm looking to see what file is changing in a directory i'd like to get the md5sum of every file and write it to a text file. Then after i know a file has changed i'd like to run it again so i can diff the output files to see what exactly…
user577732
  • 3,956
  • 11
  • 55
  • 76
3
votes
1 answer

File comparison using md5 hash or length of a file?

I have a list of files on the disk which I need to get and load it in memory. I created a FileConfig class as shown below which has all the metadata for each file. public class FileConfig { public string FileName { get; set; } public…
cs98
  • 129
  • 2
  • 10
3
votes
2 answers

Need suggestion for faster Linux fingerprint/hash comparison

I'm currently using the linux md5sum command in a bash script on a very lightweight (low processor/low memory) linux device to return and record the checksums on thousands of similarly-named 32MB files in a single directory. md5sum ./file*…
Joe
  • 45
  • 1
  • 6
3
votes
3 answers

How would a python program check its own md5sum?

I was playing a game about a year ago. Wanting to speed it up a bit, I edited the main .py file and added psyco to the very beginning. The game ran faster and better, but it would not let me send my scores. I went into the file and it was checking…
Patrick
  • 1,894
  • 3
  • 15
  • 17
3
votes
0 answers

MD5 string of const char* not correct, but why

I found a working example in which the correct MD5 sum of the text 'hoi' is printed. Now I'm trying to put it into a function but I can't get it to output the right MD5 sum. The following code is what I made: void md5_string (const char *input) { …
Niels
  • 537
  • 5
  • 22
3
votes
0 answers

How to get md5sum of a file inside a zip, without extracting the zip

Is there any way to get the md5sum of a file inside a zip file, without extracting the zip ?. I have a zip file containing directories plugins, p2 and features where plugins directory contains lot of jar files. How can I get the md5sum of a given…
Kasun Siyambalapitiya
  • 3,956
  • 8
  • 38
  • 58
3
votes
1 answer

A simple duplicate block finding algorithm performs worse when using BloomFilter for lookups

I have concatenated two ISO files into one file. Both the individual ISO files are Linux distros of the same vendor but different versions. In the program I have written (shown below), the concatenated file in read in blocks of 512 bytes and MD5sum…
Keshav
  • 4,408
  • 8
  • 31
  • 50
3
votes
3 answers

Is there a way to pad files with a few extra bytes to get a different md5 checksum?

I have video files, that I want to pad with a random number of extra bytes, in order to create a different md5 checksum. Is there a way to do that, and keep them playable?
user15063
3
votes
1 answer

Best way to derive / compute a unique hash from a given String in Java

I am looking for ways to compute a unique hash for a given String in Java. Looks like I cannot use MD5 or SHA1 because folks claim that they are broken and do not always guarantee uniqueness. I should get the same hash (preferably a 32 character…
rkrishnan
  • 776
  • 1
  • 9
  • 21
3
votes
1 answer

Compute File MD5 using Swift in ios

Is there any library to compute a fileMD5 in swift ios, more efficiently for big files, if not please give me some ideas to compute a file md5 for large files?
Prashanth Kumar B
  • 566
  • 10
  • 25
1 2
3
21 22