Questions tagged [md5sum]

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

329 questions
-1
votes
1 answer

md5sum on compressed files returning different results

I have two compressed files that are identical. When I compute the md5sum I get different results. When I unzip them first and then compute the md5sum I get the results that are expected (that they are equal). Is there a way to compare the…
Stef_92
  • 23
  • 5
-1
votes
2 answers

bash IF condition with OR logic syntax

i am confused.. i just make if file does not exist OR md5 sum is wrong something like this md5=20ffa23fbb589484d03d79608fe8d2ad if ! -f /tmp/1.txt || echo -n ${md5} /tmp/1.txt | md5sum --status --check - then .... fi how write valid syntax?
Anton Shevtsov
  • 1,279
  • 4
  • 16
  • 34
-1
votes
2 answers

How to manually write MD5 (to get the hash of a file) algorithm in Java?

Well, I kinda have a task where I have to take a file and generate MD5 hash of that file. Problem is that I can't really use any classes that would automate this processes so everything has to be programmed manually. And that prob would mean that I…
Jame Moore
  • 11
  • 2
-1
votes
3 answers

How to create md5sum for new files

We've created a folder in my dad's computer for everyone in the family to deposit and share their photos and videos. Example of directories: /Family_Photo/Penguins/2017 09 02/ /Family_Photo/East Beach/2017 10 11/Seaside/ /Family_Photo/East…
Mich
  • 3,253
  • 2
  • 14
  • 6
-1
votes
2 answers

Copying an executable file in C

I have a problem copying a file from a directory to another in C. Specifically, my code works well with textual files but doesn't with executable ones. The number of bytes written is correct and so are the file rights, but the result type of the…
Gixuna
  • 86
  • 8
-1
votes
1 answer

Concatenation and MD5 with awk

I would like to concatenate all columns in a CSV file and then apply an MD5 hash. I would like to use awk. With this code, I get the concatenation of the third column. awk -F'#' '{ { printf "%s",$3 } }' and I can get the hash with this code echo…
Houssem Hariz
  • 55
  • 3
  • 12
-1
votes
1 answer

Enter chinese filename in Windows command prompt window

How to enter in chinese filename in Windows command prompt window? Suppose you have a filename 公司File.txt somewhere. And you want to execute the md5sum.exe program on that file. md5sum.exe 公司File.txt You will get... md5sum.exe: ??File.txt: Invalid…
Vikki
  • 211
  • 1
  • 2
  • 7
-1
votes
2 answers

found different MD5 hash value generated by java and datastage

I am trying to generate MD5 checksum value using java for a string "TREFFLAGDATAC000000EN", but for the same string the IBM InfoSphere DataStage is generating a differnt MD5 checksum value. Can anyone please direct me on how to generate the same MD5…
-1
votes
1 answer

I need to compare md5sum in makefile

i´ve tried all my ideas. @if ( md5sum foto.jpg = md5sum fot.jpg );then echo "OK"; else "FAIL"; fi ; If you have any idea please help me
user3236315
  • 211
  • 2
  • 5
-1
votes
1 answer

How to check multiple files for duplicates in C++

I need to compare 5 files by their file paths: a,b,c,d,e and find duplicates if exists. How can I do this in c++ via md5sum comparison of files?
user3308092
  • 1
  • 1
  • 1
-2
votes
1 answer

is there a flaw in this md5 implementation?

ive been looking at an issue with bacula cloud support which requires md5 calculation and have been trying to use https://github.com/firebladed/bacula/blob/Branch-11.0/bacula/src/lib/md5.c and am getting bad md5 errors from amazon s3 so i tried…
fireblade
  • 39
  • 7
-2
votes
2 answers

md5sum of list of files listed by find

Is it possible to get single md5 string for files that are listed by find? This code is produce some md5 hash string but seems like it just use names of files, but I need to use content also: find my_dir -name "*.jpg" | md5 Test on json…
mrgloom
  • 20,061
  • 36
  • 171
  • 301
-2
votes
1 answer

what is the md5sum of curl 7.36.0 zip?

i downloaded 2 zip files of curl version 7.36.0, one form the official github and second from the official haxx website. but they both have different content, which one shall i use for security reasons? i couldn't find any list of md5sums…
ulkas
  • 5,748
  • 5
  • 33
  • 47
-5
votes
1 answer

How to get MD5 hash for file in C++

I need to find duplicate files in directory but don't know how to get md5sum for file.. How to get MD5 hash for file by its path in C++ ?
user3308092
  • 1
  • 1
  • 1
1 2 3
21
22