Questions tagged [md5-file]

72 questions
1
vote
1 answer

How to increase speed of generating md5 of multiple files?

I have 10000 to 12000 image files and having space up to 800 MB present in external storage. I am using a loop which takes each file path and generates md5 of it, but due to huge amount of files being read to create md5, this takes alot of…
dan walker
  • 31
  • 8
1
vote
0 answers

Most effectively to rename lots files to their md5 in Windows 10

I want to rename lots of files to their md5. I've already write a bash script to do this job and use git-scm (https://git-scm.com/) to run the script in windows. find WorkFolder -type f -iname '*.tif' -print0 | while IFS= read -r -d '' file; do …
kaikaiiiiiii
  • 63
  • 1
  • 7
1
vote
1 answer

Php md5 different from python

I'm trying to get the md5 in both php and python, but I'm not sure why the results are different, I have read in other questions about hashing strings but not files and I've also tried the echo -n but I get a syntax error. Php:
gaby
  • 117
  • 1
  • 11
1
vote
0 answers

md5_file() PHP different that Java MD5 for txt files

I'm trying to develop a file updater for some files in a folder, to Sync an FTP server with a local folder, using Java on the client and PHP on the server side. On the server side, I'm calculating the md5_file($filename) for the file and returning…
Dani Aguado
  • 215
  • 1
  • 14
1
vote
0 answers

How do I get the MD5 sum of a directory's contents as one sum on Windows?

The md5 sum program does not provide checksums for directories but the content on them. I want to get a single MD5 checksum for the entire contents of a directory on Windows, including files in sub-directories. That is, one combined checksum made…
1
vote
1 answer

How to Hash MD5 an entire table in sql server 2012

I Need to create a Hash MD5 for every table my ssis script creates in a database. Is it possible? if so can anyone please share some code, i have Searched and Searched and not getting anywhere
1
vote
1 answer

MD5 script in PHP

As an exercise, I'm attempting to implement MD5 in PHP. I know PHP has a built-in function for this but I would like to read, run and study a working source. I found this script which works great when appropriate sections are uncommented (to enable…
James
  • 31
  • 6
1
vote
3 answers

Does md5_file have a memory limit/timeout for remote files?

I've been trying to hash the contents of some zip files from a remote source using PHP's md5_file function: md5_file($url); I'm having a problem with a couple of URLs; I'm getting the following error: Warning: md5_file($url): failed to open stream:…
simonhamp
  • 3,078
  • 1
  • 20
  • 26
1
vote
1 answer

Unique identifier of mp3 regardless of id3 tag?

Ideally I want a way to uniquely identify files (audio files) where things like the ID3 tag or the file name can change and the hash remains the same. Is there a better way I don't know of to uniquely identify files? Or would I have to change my…
Z2VvZ3Vp
  • 7,033
  • 6
  • 21
  • 35
1
vote
3 answers

How to Calculate MD5 of xls file in C language

I have made many researches about MD5 of an xls file but my effort seems be in vain I tried to used lirary and recommendation in this link "https://stackoverflow.com/questions/27858288/calculate-md5-for-a-file-in-c-language" but , still give…
M.A.E
  • 33
  • 2
1
vote
1 answer

is there a way to stop the popping up of the md5.exe tool while it generates the hash for a file

i have written a program in vbscript for which i have used md5.exe to generate hash. since there are many files to which the hash has to be generated, the md5 hash repeatedly generates hash for each file one after the other. but while this process…
dante akram
  • 39
  • 2
  • 8
1
vote
0 answers

md5_file comes up with a random pick between 2 results

Similair to this question here: php md5_file function with gif file? but the answer doesn't cut it for my situation. On certain images I apply a md5_file to, there are a few (out of 20000) that give 2 different results on a random basis. Example…
Marcel
  • 1,279
  • 10
  • 12
0
votes
3 answers

Checking the MD5 of file in VB.NET

When a user clicks on the button, it will ask him to choose a specific file. It checks the MD5 hash to know if this is the right file. The problem with the code is that it gives me "Wrong File" message, and I'm totally sure that the MD5 hash for the…
Hani
  • 105
  • 2
  • 2
  • 11
0
votes
1 answer

Get MD5 of a file with Cryptography Python library

I need to use the cryptography library to get the MD5 from a file, here's whats I have: from cryptography.hazmat.primitives import hashes archivos = input() with open(archivos, "rb") as f: bfile = f.read() print(bfile) readable_hash =…
0
votes
1 answer

md5sum - No properly formatted md5 checksum lines found

I created a checksum file on a windows machine to verify on a linux machine. Before I transferred the file over I ran dos2unix on windows to get rid of the nasty windows features. The content of the file currently looks like…
Moopsish
  • 117
  • 10