Questions tagged [hashsum]
Questions related to hashes, hash values or hash codes that are returned by hash functions such as SHA-1.
245
questions
0
votes
0answers
17 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 ...
-1
votes
0answers
23 views
How does md5sum computer hash values of some users that are in a text file then try to crack them [closed]
Can someone please advice what's best way to make md5sum compute the hash values of file that contains some users password that are already hashed with MD5, so the text file containing passwords that ...
0
votes
1answer
37 views
Linux SHA1 Time Complexity
Is time complexity of Linux SHA1 linear? That means that 2GB file is hashed twice longer than 1GB file?
0
votes
2answers
23 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 ...
0
votes
0answers
27 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 (...
10
votes
1answer
1k views
Why is verifying downloads with MD5 hash considered insecure?
I have downloaded a Debian ISO with jigdo, the download has finished successfully, and printed the following message:
FINISHED --2021-01-22 11:57:20--
Total wall clock time: 4.3s
Downloaded: 9 files, ...
-1
votes
2answers
23 views
Shell Script to compute hash for every X bytes
I have a file of size 128KB, and would like to compute SHA256 hash for every 32KB. i.e
Hash 1 - Start of file - Start of file + 32KB
Hash 2 - 32KB - 64KB
Hash 3 - 64KB - 96KB
Hash 4 - 96KB - 128KB
I ...
2
votes
1answer
89 views
How to verify integrity of software when the download provider doesn't publish hashes?
I noticed that certain software does not provide hash anymore nowadays.
E.g.
Zoom
https://zoom.us/download
wolf@linux:~$ ls -lh zoom_amd64.deb
-rw-rw-r-- 1 wolf wolf 44M Jan 1 00:00 zoom_amd64....
4
votes
2answers
144 views
Concurrency of a find, hash val, and replace across large amount of rows
I have a bunch of files and for each row there is a unique value I'm trying to obscure with a hash.
However there are 3M rows across the files and a rough calculation of the time needed to complete ...
0
votes
1answer
41 views
MD6 hash generation linux command for 128-bit, 256-bit, 512-bit MD6 hashes
there are multiple checksum commands in the GNU Core Utilities in most Linux distros for famous hashing algorithms like SHA2 or MD5, But I need a command for MD6 (message digest 6) checksum that can ...
1
vote
2answers
34 views
Recreate folder structure using md5 hashes
Given a long list of md5 checksums and copies of these files, renamed and in different folder structures: How can I recreate or recover the original filesystem structure? Assuming no hash collisions.
...
0
votes
1answer
41 views
Is the difference between md5, sha1 and sha256 sums the less important the larger the file?
I am compressing a number of files with size in the order of 5GB before sharing them.
On the one hand, I would like to provide a hash sum for the recipient to check the files' integrity. On the other ...
1
vote
1answer
69 views
Hash-based filesystem?
Is there a hash-based filesystem, where:
There is a store of blocks (perhaps 512b, 4KB or 128KB) indexed by the hash of their contents.
Each block has a usage count. When it reaches zero, the block'...
0
votes
1answer
106 views
how to add md5sum value for csv file using awk
I have csv file as mentioned below format,
1,123-456,IND
2,234-567,US
3,345-678,AUS
4,333-444,SA
I don't want to use any loops, I want to generate md5sum value for each row using AWK command as ...
2
votes
3answers
230 views
What command will give me a binary delta between two files and let me apply it?
I have two large files.
a.qcow2 is 16GB.
b.qcow2 is 17GB.
The first 16GB of b.qcow2 is 95% identical to a.qcow2.
What Linux commands will let me produce the delta between the two files? (Which ...
0
votes
3answers
112 views
verify sha1sum and print directory & filename of corrupt files
I have a series of directories with sha1sums and md5sums files in. The format of these files is the usual hash space space filename, with one hash/file per line. I want to verify the files and print ...
8
votes
2answers
2k views
Why are end-of-file and end-of-input-signal treated differently by sha256sum?
I was trying to compute sha256 for a simple string, namely "abc". I found out that using sha256sum utility like this:
sha256sum file_with_string
gives results identical to:
sha256sum # ...
1
vote
1answer
60 views
MX Linux ISO checksum mismatch
I went to the MX Linux website and their "Direct Download" linked me to their Sourceforge downloads page. I selected the first option - MX-19.2_September_x64.iso then checked the download ...
-1
votes
2answers
398 views
How do I md5sum all files in /bin and sub directories and verify the hash using bash script?
I tried with
find /bin -type -f -exec md5sum {} + >>sum.md5
The /bin directory contains a variety of files types, but the above returns the checksums for only regular files. Is there any way ...
0
votes
1answer
23 views
Hash sum via pipe, abort if no match
How can I verify a checksum of a file by piping it? e.g. I want to do something like
curl -sL https://example.org/maybe-safe-maybe-not.tar.gz | md5sum 8da7904f495f682c39fa505b6404f9d1 | tar xvzC /usr/...
1
vote
2answers
47 views
How to implement string to array hash in perl?
I am trying to count occurrence of each word on particular line of input. Given example (what I am trying to achieve):
$./foo.pl
asd fgh
asd iop
zxc
asd: 1, 2
fgh: 1
iop: 2
zxc: 3
Just a program to ...
0
votes
1answer
74 views
Help with regex with sed -i for a tampermonkey script
I'm writing a tampermonkey script, using git and jsdelivr to store and send it to the users.
For the jsdelivr to work correctly, i need to change the commit hash in the url.
// @require https:/...
0
votes
0answers
18 views
how to check if someone override a directory?
Lets say i have an existing directory and someone did cp -r over this and some files changed. I want to detect this change. How can i do it ?
I thought of using md5 or some checksum calculator for ...
0
votes
0answers
52 views
How to use openssl shake256 hash string into a specified length hash-string?
How to use openssl shake256 hash string to a specified length hash-string?
I use the following command to generate a shake256 hash string with the default length in Linux:
echo -n 28713 | openssl ...
0
votes
1answer
31 views
How to append input to sha256sum
I want to type in sha256sum, then << cat, so that I can enter in some word and then receive the output as the hash. But I can't do this because it shows me no file called cat, or shows me a ...
0
votes
0answers
22 views
Trying to use seek and skip, but md5 is different
I ran into an unexpected behavior when using dd.
I write this to myfile:
root@io-generator-app-0:/# dd if=/dev/urandom skip=10 of=/tmp/myfile bs=4k
Then using skip option again to write it to some ...
2
votes
1answer
589 views
VirutalBox: apt download / hashing problem (APT Hash Sum Mismatch)
I'm trying to install docker with apt from the https://download.docker.com/linux/debian/ repo.
Unfortunately installation always fails with a hash mismatch warning. I have already tried everything ...
3
votes
1answer
160 views
ConnMan: how to store password as hash?
We are looking for a way to get ConnMan to hash passwords (hashed on disk, i.e. not in plain text).
We are wondering if it is possible to enable such feature by compile-time definition or runtime ...
0
votes
1answer
34 views
Checksum during rsync questions
Simple questions, I hope. if I'm running checksum (as a -c flag) on rsync, like so -
rsync -c --log-file="/location/logfile.txt" \
-e "ssh -p {port number}" {source} {destination}
will detected ...
1
vote
0answers
103 views
Checksum comparison file too large
I am trying to run a checksum comparison task on a large folder that I rsync from one Synology server to another.
What I am trying to get is an output that shows me any differences between the ...
1
vote
0answers
326 views
Fresh download kali-linux-2020.2a-rpi3-nexmon-64.img.xz chksum mismatch
The downloaded file is a different size to that on the Kali website:
https://www.offensive-security.com/kali-linux-arm-images/
Kali Linux RaspberryPi 2 (v1.2), 3 and 4 (64-Bit) Torrent 2020.2a ...
0
votes
1answer
409 views
How should I replace a value in JSON file with its md5 value using jq command?
I have a big log file containing a line as below example :
{"data_1":210,"target_number":1096748811,"extra_data":66}
{"data_1":0,"target_number":7130881445,"extra_data":56}
{"data_1":1712,"...
1
vote
1answer
912 views
How to fix Kali Linux 2020.1 hash sum mismatch error?
I just recently download Kali Linux .ova from here
When I run sudo apt update , it returns
Get:1 https://packages.microsoft.com/repos/vscode stable InRelease [3,958 B]
Get:2 https://packages.microsoft....
0
votes
1answer
43 views
hashes are the same: rmmod, modprobe, modinfo, modinfo, lsmod, insmod, depmod
I am get this same output after checking hashes of rmmod, modprobe, modinfo, modinfo, lsmod, insmod, depmod
root@user:/var/log/apt# md5sum /sbin/modprobe
150aa565f1e37e2fd200523b6b4fcedf /sbin/...
1
vote
1answer
17 views
Acuracy Level of md5sum Comparison
Doing here some file listing with find command as follows:
find /dir1/ -type f -exec md5sum {} + | sort -k 2 > dir1.txt
Then:
find /dir2/ -type f -exec md5sum {} + | sort -k 2 > dir2.txt
...
0
votes
1answer
44 views
How to calculate the checksum of a file's name?
I tried with openssl as it is very fast:
openssl sha1 "$(basename "very_big_image.png")"
But this just substitutes the actual file for check summing.
0
votes
1answer
65 views
Why does the PIGZ produce a different md5sum
I observe that when I use PIGZ version, generated tar file's md5sum hash is different than the next one generated.
Instead of PIGZ=-n if I use GZIP=-n generated hashes are same. I have followed ...
0
votes
1answer
60 views
Get different md5 value when to verify ssh public key
The author wrote ssh public finngerprint in the webpage.
fingerprint
If you want to send me an email, my fingerprint is:
5029 E0D0 F458 72E4 09D3 308D 1D51 378E E348 35B6
Now i make a ...
0
votes
0answers
1k views
Hash Sum mismatch Installing docker-ce on Virtualbox Ubuntu Server 18.04
I am following the directions to install Docker-CE. Instructions located at: Get Docker Engine
I follow all steps on the guide and get Hash Sum Mismatch when executing the command
sudo apt-get ...
5
votes
1answer
8k views
Kali Linux: apt update returns “Hash Sum mismatch” error
I'm experiencing exactly the same issue as described in this question: Kali Linux: apt-get update returns “Hash Sum mismatch” error. Before you mark this as a duplicate however, I have tried the ...
1
vote
1answer
378 views
Argon2 Commands in the Terminal
I have been using Argon2 in my terminal (Debian), but I keep messing up, and I have been unable to find the manual or any other documentation that lists examples of commands that work.
Could someone ...
1
vote
1answer
53 views
Update hash file when rechecking files
I'm currently saving each folder on a hash file with the following code
find folder/ -type f -exec sha256sum {} > checksumfolder.txt \;
I'm wondering if it is possible instead of checking/...
0
votes
1answer
43 views
Unable to pass argument to argon2 command
According to the manual of argon2 (Debian package), it says to pass the password from standard input. However, when I follow the instructions and attempt
echo -n "password" | argon2 salt "...
3
votes
1answer
131 views
What encryption mechanism is used to store passwords in `/etc/shadow` in a typical Unix, such as Gnu/Linux?
(From a novice's point of view)
The other day I was thinking about how a typical "passwd" command works in a LINUX OS. For example, when we type in "passwd", a prompt appears letting us type in our ...
0
votes
1answer
1k views
List all keys with SHA-1 in the gpg keyring
After reading a paper about "First Chosen-Prefix Collision on SHA-1 and Application to the PGP Web of Trust", I wonder how many SHA-1 keys are left in specific key rings.
How to list all keys in a ...
5
votes
1answer
3k views
How to know if password in /etc/shadow is hashed with SHA or MD?
I want to know my /etc/shadow password hash if its SHA or MD or something else. From what I read, it is related to the $ sign, but I don't have any dollar signs.
Im using Ubuntu 16
Example:
user:0....
8
votes
2answers
1k views
How do I use GNU parallel to calculate sha256 hash?
Based on this:
Simultaneously calculate multiple digests (md5, sha256)?
I have a folder that has a large number of files that I want to compute the SHA256 hash for.
I used to code segment:
#!/bin/...
3
votes
1answer
262 views
Automatically verify passwords for classroom exercise? [duplicate]
I'm trying to write a bash script which, among several other things, will "log in" as a user (preferably with su if possible) without needing to interact with the password prompt, i.e., will ...
-2
votes
1answer
37 views
How am I able to use the command “sha256sum x.img” “without” a network connection, and get a hash-response?
I am under the impression that sha256sum pings the distro side of things and reads "THEIR" hash file for my .img and gives me that info in a hash-printout in my term.
If so, how I am able to get that ...
1
vote
1answer
285 views
PBKDF2 not the same
I am trying to calculate a PBKDF2 hash, but am getting inconsistent results.
Message: Hello
Salt: 60C100D05C610E8B94A854DFC0789885
Iterations: 1
Key length: 16
Expected hash: ...