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
0
votes
3answers
94 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 ...
7
votes
1answer
1k 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
32 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
0answers
13 views

Can one direct the passwords hashcat found to some file?

I saw I can use hashcat to crack md5 hashes. How can use it to find hashes from text file where it is known that all passwords contains only letters a-z and first password is 1 letter long, second is ...
-1
votes
2answers
99 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
21 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
45 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
37 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
17 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
37 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
26 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
21 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
401 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
107 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
27 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
90 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
166 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
153 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
550 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
37 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
16 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
34 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
41 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
33 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 ...
3
votes
1answer
5k 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
174 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
39 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
38 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
108 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
482 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
2k 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
954 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
260 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
30 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
188 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: ...
0
votes
1answer
45 views

calculate the total md5 of specific match files

in folder , we have the following HADOOP binary files and their size (BYTES) du -sb * | grep HADOOP[a-z] 334542327 HADOOPaa 334542327 HADOOPab 334542327 HADOOPac 334542327 ...
3
votes
2answers
452 views

Failing to untar

I am dealing with transferring large files from one machine to another (600GB+) and I'm tarring them up using tar -cpvzf file.tar.gz -C PATH_TO_DIR DIR Once finished with the tarring process, the ...
2
votes
1answer
111 views

160-bit fingerprint of RSA key

The command ssh-keygen -lf /etc/ssh/ssh_host_rsa_key.pub prints the 128-bit fingerprint of the RSA key. What is the command to get the 160-bit fingerprint of a RSA key?
0
votes
1answer
117 views

Custom context menu items in file manager? (execute with custom bash script shortcut)

Is there a way in any Linux GUI file manager to create a custom shortcut to a bash file to be executed using the selected file(s)? Example: Create hash sums of this file. Bash script: makehashsums....
1
vote
0answers
46 views

GraphDriver & RootFS entry in manifest file

When the image is pushed to Docker registery, the content of each image layer is compressed and then the corresponding digest(SHA-256) is placed in manifest file. Manifest file for redis repository ...
2
votes
1answer
2k views

How do I fix this error: “ipset v6.11: Hash is full, cannot add more elements”

When I run the update script for voipbl manually, I get this error from ipset: ipset v6.11: Hash is full, cannot add more elements. I am running it manually because some IPs that are on the blacklist ...
0
votes
0answers
79 views

What is the sha1sum -c equivalent with OpenSSL?

I generated checksums for a list of files and stored them a .sha1 file by using the following command: openssl dgst -r -sha1 -out sums.sha1 * which is the equivalent of: sha1sum * > sums.sha1 ...
0
votes
0answers
40 views

Continuously detect a change of chksum of files under folder with inotify-tools [duplicate]

I just installed inotify-tools. I would like to continuously detect change of chksum of files under folder /path Once a change was detect ( under /path ) then it will print echo “chksum of files ...
0
votes
1answer
176 views

do I use sha256sum or sha256hmac for file checksum

I have a text file with stuff in it I want to checksum it and create a hash for later use to know if the file has changed, when used anywhere else which to use? sha256sum myfile or sha256hmac myfile
2
votes
1answer
111 views

md5sum of /dev/sr1 different than ISO image?

After writing an ISO image using Brasero, I discovered that the md5sum of the target DVD is different than the ISO image, despite no readability errors. What has caused that difference?
0
votes
1answer
68 views

Generate a sfv file with bash (crcs along with the paths)

How would I script something so that it gives me a list of crcs along with the paths, like an sfv file? I could code this in python but there is probably a simpler way in shell. So far I have: find ....
0
votes
1answer
501 views

In a bash script, how to use a variable inside a command and assign to a new variable?

I'm trying to store the MD5 of a variable into another variable. Between backticks and the more modern () notation, I cannot figure out how to assign the value of a variable run through a command to ...
0
votes
2answers
467 views

Fast hashing in awk?

I find it cool that someone has written MD5 in AWK: https://kaworu.ch/blog/2017/05/23/implementing-md5-in-AWK/ Unfortunately that one is quite slow. I am looking for a fast hashing tool for AWK that ...
0
votes
1answer
3k views

how to generate bcrypt 2a variation hash instead of 2y?

On my linux machine, I'm able to generate bcrypt hash from command line using htpassword htpasswd -bnBC 10 "" password | tr -d ':\n' however it generates "$2y$" but I need "$2a$" (bcrypt 2a). How ...

1
2 3 4 5