Questions tagged [hashsum]

Questions related to hashes, hash values or hash codes that are returned by hash functions such as SHA-1.

Filter by
Sorted by
Tagged with
1 vote
0 answers
33 views

Continue a directory tree checksum from a given file

I have: A checksum.txt file which contains many lines of checksums of single files from a mountpoint in a huge directory, which mounted and then it disconnected, thereby not finishing the checksum....
Sir Muffington's user avatar
0 votes
1 answer
24 views

What is a good way to perform a SHA256d hash (double SHA256) on an OpenBSD fresh install?

What is a good way to perform a SHA256d hash (double SHA256) on the default terminal of an network isolated OpenBSD fresh install? Here's what I'm doing: echo test > testfile cat testfile | openssl ...
Lee's user avatar
  • 497
0 votes
1 answer
39 views

apt hashes error in Debian 12 Bookworm with cdrom

I just installed Debian 12 Bookworm for the first time. apt will not install gparted. There is a hashes mismatch error : $ sudo apt install gparted Reading package lists... Done Building dependency ...
cardamom's user avatar
  • 550
0 votes
1 answer
35 views

How do you synchronize files with partially failed download using rsync?

I'm trying to synchronize literally thousands of files of various sizes and I would like to have a 1:1 copy of the files. That means that already present files should be checked for their integrity ...
Sir Muffington's user avatar
0 votes
1 answer
607 views

What does xxd -r -p do?

So I am trying to calculate a SHA1 digest (and base64 encode it) for an attachment I received so it matches their (base64 encoded) digest. Using ChatGPT, I was able to use the command below to succeed....
geckels1's user avatar
  • 133
0 votes
2 answers
184 views

Compute checksum of a partition inside an image file

An external USB flash drive containing 2 partitions is connected to my Raspberry Pi. I want to dd an image file to this external flash drive if the first partition on the flash drive is not the same ...
fdamien12's user avatar
0 votes
0 answers
39 views

How to calculate the password hash in /etc/shadow [duplicate]

I have the following line in my /etc/shadow file (SALT and HASHED_PASSWORD are not real values for obvious reason). And I understand $6 means SHA512 is used. testuser:$6$SALT$HASHED_PASSWORD:19591:0:...
DrizzleX's user avatar
  • 125
0 votes
0 answers
103 views

MD5 Hash modified trought netcat

I used dd to create a sample empty file with 1MB, edited the sample file, created a MD5 hash of the file, started a listener on the examiner machine, piped the output off to nc and compared the hashes....
kappa's user avatar
  • 1
0 votes
2 answers
66 views

Generate file digest using data, file ownership & permission and others

I'd like to be able to detect when a file is considered different if the data are still the same but the ownership has changed (or the permission, access/creation time, etc...). Is there a such tool ?
A.G.'s user avatar
  • 113
5 votes
3 answers
1k views

Create MD5 within a pipe without changing the data stream

I was asked to create a mechanism to dump a (data on rest) encrypted mysql into an encrypted file. That mechanism must meet certain criteria, like: Shall run under Linux No write of unencrypted sql ...
GrumpyMonk83's user avatar
1 vote
1 answer
683 views

Is it possible to verify a Windows EXE (PE file format) checksum under Linux?

Windows EXE files which are in the PE format have a header and it contains a checksum. Is it possible to verify it under Linux? Because I am looking for a Linux command I hope you understand that this ...
javanerd's user avatar
  • 113
0 votes
1 answer
1k views

How to recursively create .sha256 hash files for every file in a folder?

Example I have these files /sdcard/testfolder/file1 /sdcard/testfolder/file2 /sdcard/testfolder/file3 /sdcard/testfolder/file4.ext I would like to create .sha256 files for each /sdcard/testfolder/...
Shodan's user avatar
  • 101
1 vote
1 answer
830 views

Using rsync to query the checksum of a remote file

Can we use rsync to simply get the checksum of a remote file, without transferring it? This could be useful for verifying the integrity of remote files without using a lot of bandwidth, if you don't ...
Nate Eldredge's user avatar
3 votes
1 answer
1k views

Why is DM-Integrity so slow compared to BTRFS?

I want to detect silent corruption of block devices similar to how BTRFS does that for files. I'd even like to do that below BTRFS (and disable BTRFS's native checksumming) so that I can tweak more ...
ATLief's user avatar
  • 308
0 votes
1 answer
191 views

How to calculate the checksum while writing random data to a disk?

I have a disk which is perhaps broken. I want to write random data to the disk and later verify the md5 checksum. I write to the disk like this: dd if=/dev/urandom of=/dev/sda bs=4M status=progress ...
zomega's user avatar
  • 972
1 vote
1 answer
157 views

md5sum of image and sd-card partition differ

I am creating an image of an sd-card partition (dd) and eventually the checksum (md5sum) of the image and the partition are not the same. What am i doing wrong? My sd card is inserted into an external ...
Ben's user avatar
  • 13
0 votes
1 answer
89 views

Extracting salt:hash from a text file

Currently, I don't seem to be able to find a script or guide online to find out how to extract the hash:salt into a text file. For example user,7,17,email,alis,,,b8e44d9a607d0c547294b24eac45399:...
ZeroHashGolden's user avatar
1 vote
3 answers
630 views

How to associate a file to an hash code, and use it to find the file anywhere in the filesystem

I would like to create a tool (a shell script, or maybe a Python script) to generate and associate an hash code to a file, and then be able to use that hash to retrieve the file in the filesystem (...
Fabio's user avatar
  • 457
0 votes
1 answer
247 views

Is MD5 still a viable solution for validating the integrity of files?

I read about the MD5 collision and that MD5 is not reliable anymore, however, I'm curious if that applies when we check the integrity of files. I've noticed that tools such as the FLAC/metaflac (Free ...
Zoltan King's user avatar
1 vote
1 answer
226 views

Calculate checksum for whole content of a device and add a progress bar

I want to make a shell script, that lets the user select a mounted device and calculate a checksum for the whole data on this device. I need the checksum to test if the device has been manipulated by ...
stewie's user avatar
  • 45
3 votes
2 answers
641 views

Wait until md5sum command is completed

#!/bin/bash cd /path-to-directory md5=$(find . -type f -exec md5sum {} \; | sort -k 2 | md5sum) zenity --info \ --title= "Calculated checksum" \ --text= "$md5" The process of a ...
stewie's user avatar
  • 45
0 votes
1 answer
69 views

tar archive and checksum empty

On a centos 7 I'm trying to arhive and do a checksum over a directory but at the end the files are empty. localpath=/backup name=$(date '+%Y-%m-%d') tar cvzf $localpath/BackUp$name.tgz $localpath/...
sticletele's user avatar
1 vote
3 answers
797 views

How to set default root algorithm to sha512 on Linux?

I can see the content below in /etc/shadow. The root password's hash algorithm is md5, but the test user's is sha512: root:$1$RjnJa1j6$.HbXUfxVzGSSAgSvz52Zm1:19251:0:99999:7::: . . . test:$6$...
Nancy's user avatar
  • 11
0 votes
2 answers
3k views

How can I create a hash or sha256sum in Bash using multiple sources or inputs? What is the recommended method?

I want to create a hash of more than one source in Bash. I am aware that I can: echo -n "STRING" | sha256sum or sha256sum [FILE] What I need is: STRING + FILE FILE + FILE STRING + STRING ...
Z0OM's user avatar
  • 3,159
0 votes
5 answers
545 views

Extract hash from file name

When archiving certain data we encode the archive's sha1 HASH within the file name so as to determine the integrity of the archive. I am trying to find a way to automate the integrity check by ...
Mark C's user avatar
  • 1
0 votes
1 answer
3k views

How to make archive file with checksum like tar.md5 or tar.gz.md5?

How can I add checksum information to a TAR archive, as in file.tar -> file.tar.md5 or file.tar.gz -> file.tar.gz.md5 I have searched everywhere but there is no guide or app about it. I need ...
Mai Ngọc Vinh's user avatar
1 vote
1 answer
5k views

How to compare hashes of files in bash script?

I am using sha256sum to check whether file has changed or not within the bash script. My idea is to first store the sha256sum in a *.sha256 file. Then if this is present then use this for sha256 ...
Preeti 's user avatar
  • 223
8 votes
3 answers
3k views

How to show progress when checking checksums using sha256sum

How do I show the progress when when checking the SHA256 checksums of large files? When I do sha256sum -c SHA256SUMS where the file SHA256SUMS contains the checksum for a large file, there is no ...
Flux's user avatar
  • 2,938
1 vote
2 answers
529 views

Parallel md5sum on all *.txt files in directory

Trying to calculate md5 hash of all *.txt files in directory and store each in same filename but with extension replaced from .txt to .md5. For file: foo.txt i want to create file: foo.md5 with ...
watbywbarif's user avatar
0 votes
1 answer
283 views

inconsistent capitals in sha256

I've downloaded a windows 10 OS and tested the sha256, compared to what they report for English international 64 bit (left hand side): [ ...
sheldrake's user avatar
0 votes
0 answers
168 views

Estrange \n at the end of the file name when checking my md5 files

For a reason a do not understand when checking my md5 files, it fails because the name of the file have a \n at the end but the file name doesn't have this character. These are old files I have on my ...
Manuel Dominguez Becerra's user avatar
1 vote
4 answers
345 views

Problems with replacing XML tag contents using sed

I have the following XML piece: <value id="1" creatorId="0" creationTime="1639487132" expirationTime="1639573532">+380554446363</value> <value id=...
Arets Paeglis's user avatar
0 votes
1 answer
868 views

Get hash from file while you copy or move it

Say I copy a file with pv, is there any way to also get any hash, like md5, sha1, etc without having to read origin twice? It has to work with big files or block devices. Example command which does ...
Smeterlink's user avatar
0 votes
1 answer
746 views

How to diff folders and get verbose information?

I have 2 ~55 Gb folders (with many subfolders) that contain more than 1500 files per ~30 Mb. I need to compare them and get information if some files are missing / new files persist or their hash is ...
Velent's user avatar
  • 39
0 votes
0 answers
298 views

mount device and md5sum is changed

If mount sdc2 partition using mount -t ext4 -o ro /dev/sdc2 /mnt/bob2 then try to write file tihi 1.txt with command (of course unsuccessfully): touch /mnt/bob2/ tihi 1.txt When I do md5sum /dev/sdc2/...
John Stockton's user avatar
0 votes
1 answer
2k views

Salt size in /etc/shadow

After user password change the size of salt decreased in RHEL/Centos 6, eg: cat /etc/shadow ... root:$6$FkMNsNxT$FW77....................nbL0...... bin:*:15422:0:99999:7::: ... As you can see, ...
user13726895's user avatar
0 votes
0 answers
120 views

Need help for comparing checksums of files on remote servers

Algorithm: Take md5sums of files/directories from all servers [Pick server-list and DIR-list from a file] Compare md5sums of files from all servers with active-node [Active node can be any 1 node ...
n1Ls's user avatar
  • 51
3 votes
1 answer
657 views

Two supposedly same M4A files are giving different hash results. Why?

Two files containing same song, both in M4A format, output two different results when I calculate their hashes: md5sum f149e2d2a232a410fcf61627578c101a new.m4a ad26ed675342f0f45dcb5f9de9d586df old....
Igor V.'s user avatar
  • 321
0 votes
1 answer
425 views

Saving hashed string in a variable

I need to hash a string with SHA-512 algoithm. I have a salt also. I'm trying in the script this: inputHash=$( perl -e 'print crypt("${array[3]}","\${pass[0]}\$${pass[1]}\$") . &...
areverte's user avatar
3 votes
3 answers
2k views

How can I parallelize command sha256sum or other hashing commands?

I want to parallelize hash calculation process because I have a very large amount of file counts and sizes. When I see CPU usage of these commands, I get upset because they are only using one thread; ...
Berkant E.'s user avatar
0 votes
2 answers
63 views

How does my linux OS make so quickly sign in process?

I have written this shell script to test sha-516 hash password string : myhash='$6$nxIRLUXhRQlj$t29nGt1moX3KcuFZmRwUjdiS9pcLWpqKhAY0Y0bp2pqs3fPrnVAXKKbLfyZcvkkcwcbr2Abc8sBZBXI9UaguU.' #Which is ...
baponkar's user avatar
  • 111
0 votes
0 answers
774 views

How to use rsync correctly to compare file hashes of two directories incl. subdirectories and interpret its output?

To check equality of a local and a remote directory I want to compare the hashes of all the files and did: $ rsync -avcn /home/me-here/thisss/ [email protected]:/home/me-there/thisss/ > diffs.txt ...
jay.sf's user avatar
  • 227
1 vote
0 answers
508 views

can md5sum check ignore some warnings?

When I run md5sum -c I get errors such as "No such file or directory". I only want checksum that did not match and ignore files that could not be read. --quiet gives me same result.
bilig james's user avatar
0 votes
1 answer
622 views

md5sum error when trying to run on text file

I'm trying to run a simple md5sum algorithm, given that I was getting problems before I decided to change my TMP file to a local directory that has enough allocated space (export TMP=some/local/...
bioinformatics_student's user avatar
0 votes
1 answer
376 views

Need help calculate Salt

Can someone please help with calculating all possible salt values from password file? so I have this password file called file_1.txt that is salted and MD5 hashed and I want to prepare a rainbow table ...
Khedir Qassim's user avatar
-1 votes
1 answer
92 views

Salt bit required

I'm trying to figure out if we have in Unix password file N amount of account passwords, how many bits should be used for salt? I understand that most Unix used 56 bit password and some uses 12 bit ...
Khedir Qassim's user avatar
0 votes
0 answers
34 views

The download files has the same name, but different hashsum

I downloaded "testdisk-7.2-WIP.linux-x86_64.tar.bz2" from 2020 and 2021, they have the name and seems same version, but have different hashsums. Looking inside the packages, one is created ...
vitofy's user avatar
  • 1
0 votes
1 answer
290 views

Linux SHA1 Time Complexity

Is time complexity of Linux SHA1 linear? That means that 2GB file is hashed twice longer than 1GB file?
Кирилл Волков's user avatar
3 votes
2 answers
2k views

SHA1 verification of external deb package before install

I have a .deb file and its SHA1 checksum information. How do I check the .deb file's authenticity using this checksum before installing? There's many entries on Google for "how to verify ...
cvlo's user avatar
  • 33
0 votes
0 answers
38 views

How to create a deterministic tar.gz using tar? [duplicate]

I have followed following answer for Tar produces different files each time and Why does the PIGZ produce a different md5sum. My goal is to generate deterministic compressed file in tar.gz format (...
alper's user avatar
  • 469

1
2 3 4 5 6