md5sum is a computer program that calculates and verifies 128-bit MD5 hashes, as described in RFC 1321.
Questions tagged [md5sum]
329 questions
0
votes
2 answers
Create md5sum of file parallel to file dump
My C program creates output file out.txt.
I've to create md5sum of it.
I know that the command is md5sum out.txt > md5sum.txt.
What I want is not to create whole out.txt and then md5sum out.txt.
I want both operations to run parallely. Md5sum should…

Vikram Dattu
- 801
- 3
- 8
- 24
0
votes
1 answer
How to make Java Md5 checksum of a file unique
I'm getting the Md5 of a file using Apache DigestUtils as follows:
public static String getMd5(File file) throws Exception
{
FileInputStream fis = null;
String md5 = "";
fis = new FileInputStream(file);
md5 = DigestUtils.md5Hex(fis)
…

user3403657
- 137
- 1
- 4
- 14
0
votes
0 answers
Redownload file only if file is different android
need a logic to download file when i run my android app from same link for example
www.example.com/folders/examplefile.doc
in my splash activity I download examplefile.doc only on the first launch of the application
but i want a efficient way of…

zaid kazi
- 33
- 6
0
votes
1 answer
copying .tar.gz file while writing it
Is writing a .tar.gz file purely sequential?
When copying a large file, I started compressing it, and while it was compressing, scping it to a different machine. Afterwards I checked the md5sum on both machines, and they did not match. I guess it…

user831885
- 105
- 1
- 5
0
votes
1 answer
Getting md5sum hash from awk script
On my linux shell (ubuntu) if I type the following command:
echo -n -e "THIS IS A TEST" | md5sum
I get the md5 hash value of: 1586CFFAFA39E38959477DA9EAA41C31
If I do the following:
awk -f short.awk
where short.awk contains:
BEGIN {
print…

Nicholas Antimisiaris
- 37
- 10
0
votes
1 answer
How to compare md5checksum of files in source server against destination servers in shell script?
I have 100 files in /data01/primary folder and 100 different files in /data02/secondary folder in machineX. All these 200 files comes from machineA and machineB and if files are not there in machineA, then it should be there in machineB for sure.
So…

john
- 11,311
- 40
- 131
- 251
0
votes
2 answers
Bash get md5sum of File not path as String
I'm trying to save the md5sum of multiple java files in a text file, but as I see it, it creates an md5sum of the path and not the file itself.
find $FilesDirectory -iregex '.*\.java' | while read line; do
if [ -f "$line" ]
then
echo…

Cupple Kay
- 155
- 2
- 14
0
votes
2 answers
How to see the original Debian md5sum of an installed file?
Here's the situation. A Debian package has already been installed. A file from that Debian package appears to have been altered. However, I am unable to find the original md5sum of the file when the file was installed.
The original package is no…

user2569618
- 517
- 3
- 16
- 42
0
votes
1 answer
Utility/Tool to get hash value of a data block in ext3
I have been searching for a utility/tool that can provide the md5sum(or any unique checksum) of a data block inside ext3 inode structure.
The requirement is to verify whether certain data blocks get zeroed, after a particular operation.
I am new to…

footloose
- 167
- 1
- 4
- 18
0
votes
1 answer
Is there any function to get the md5sum value of file in linux?
I want to compute the md5sum value of a file ,not a string . I found somebody had used openssl md5 function. But it's only used in string . Is there any function that i can use to get the md5sum value of a file which equals using md5sum command in…

ttworkhard
- 293
- 1
- 7
- 14
0
votes
1 answer
Why isn't a multiprocessing implementation of a hashing function much faster than a serial one in Python?
Take the example of this code:
def get_hash(path, hash_type='md5'):
func = getattr(hashlib, hash_type)()
f = os.open(path, (os.O_RDWR | os.O_BINARY))
for block in iter(lambda: os.read(f, 1024*func.block_size), b''):
…

Deneb
- 981
- 2
- 9
- 25
0
votes
1 answer
Different results for same argument for different Unix functions
I am getting somewhat different results with using these commands:
ls "$MYDIR/*.avi"
md5sum "$MYDIR/*.avi"
using win-bash. The former lists only the files that end with .avi while the latter does the checksum calculation for all files containing…

user3342624
- 101
- 1
- 1
- 3
0
votes
2 answers
30 char md5 digest
I use the following code for generating md5 for blob data in database.
md5Checksum.update(byte[] --- read from database);
String result = new BigInteger(1,md5Checksum.digest()).toString(16);
The checksum i obtain is varying in length(30-32) for…

kjkszpj
- 81
- 1
- 1
- 4
0
votes
1 answer
why tcl md5:md5 result is different of md5sum result
The following tcl code generate the different result than md5sum executable
#!/usr/bin/tclsh
package require md5
puts [md5::md5 -hex "test_string"]
the result is:
3474851A3410906697EC77337DF7AAE4
In UNIX shell:
echo "test_string" | md5sum
the…

Roman Kaganovich
- 618
- 2
- 6
- 27
0
votes
1 answer
Script response if md5sum returns FAILED
Say I had a script that checked honeypot locations using md5sum.
#!/bin/bash
#cryptocheck.sh
#Designed to check md5 CRC's of honeypot files located throughout the filesystem.
#Must develop file with specific hashes and create crypto.chk using…

Tekz08
- 35
- 5