Episode #125 of the Stack Overflow podcast is here. We talk Tilde Club and mechanical keyboards. Listen now

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
10
votes
1answer
6k views

How to find the hashing algorithm used to hash passwords?

I have the working password and can see the hash (/etc/passwd). How do I find the hashing algorithm used to hash the password, without manually trying different algorithms until I find a match?
17
votes
7answers
6k views

How can I generate SHA3 if there is no sha3sum command in coreutils?

I have sha1sum or sha512sum on an average Linux distro. But where is the sha3sum command that can generateSHA-3 commands?
-2
votes
1answer
26 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 ...
83
votes
10answers
219k views

How to create SHA512 password hashes on command line

In Linux I can create a SHA1 password hash using sha1pass mypassword. Is there a similar command line tool which lets me create sha512 hashes? Same question for Bcrypt and PBKDF2.
0
votes
1answer
1k views

Problems in creating certificate with SHA256 / SHA512

I want to generate a self-signed certificate with SHA256 or SHA512, but I have problems with it. I have created a script, which should does this automatically: #!/bin/bash set -e echo "WORKSPACE: $...
9
votes
3answers
8k views

No sha256sum in MacOS

I tried to use sha256sum in High Sierra; I attempted to install it with MacPorts, as: sudo port install sha256sum It did not work. What to do?
0
votes
3answers
645 views

Print SHA sums without “-” at the end?

Is it possible to have SHA sums print without the - appended to the end? $ echo test | sha1sum 4e1243bd22c66e76c2ba9eddc1f91394e57f9f83 - <--- this "-" dash/hyphen I know we can use awk and ...
3
votes
2answers
81 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 ...
1
vote
1answer
46 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
36 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 ...
8
votes
5answers
11k views

How to remove duplicate files using bash

I have a folder with duplicate (by md5sum (md5 on a Mac)) files, and I want to have a cron job scheduled to remove any found. However, I'm stuck on how to do this. What I have so far: md5 -r * | ...
0
votes
0answers
5 views

optware rhash install

Attempts to install Optware: myHostname:/tmp/home/root# ipkg list_installed | grep -i rhash myHostname:/tmp/home/root# ipkg list | grep -i rhash myHostname:/tmp/home/root# ipkg install rhash Nothing ...
5
votes
3answers
1k views

Compute md5sum for each line in a file

Given a file like: a b c How do I get an output like: a 0cc175b9c0f1b6a831c399e269772661 b 92eb5ffee6ae2fec3ad71c777531578f c 4a8a08f09d37b73795649038408b5f33 in an efficient way?...
2
votes
1answer
29 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
0answers
25 views

Base64 encoding from SHA512 hash bytes [duplicate]

How to get base64 encoding directly from SHA512 hash bytes and not from the uppercase hexadecimal representation of the SHA512 in linux shell?
3
votes
2answers
6k views

How to compare different SSH fingerprint (public key hash) formats?

When I log in to an SSH server/host I get asked whether the hash of its public key is correct, like this: # ssh 1.2.3.4 The authenticity of host '[1.2.3.4]:22 ([[1.2.3.4]:22)' can't be established. ...
0
votes
1answer
31 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
1answer
501 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
1answer
2k views

How to fix hash sum mismatch errors when doing apt-get update by using the Acquire-by-hash option?

When I do an apt-get update, I get a hash sum mismatch error for one of my local repositories. I have already read the solutions on here and in other places, but those solutions don't apply because I ...
1
vote
0answers
24 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 ...
0
votes
0answers
45 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 ...
11
votes
4answers
24k views

A simpler way of comparing md5 checksum?

After downloading a file that has a md5 checksum available I currently check it with md5 *file* | grep *given_checksum* e.g. md5 file.zip | grep -i B4460802B5853B7BB257FBF071EE4AE2 but it seemed ...
0
votes
0answers
35 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
2answers
675 views

Shell output question

What is the output of date -u +%W$(uname)|sha256sum|sed 's/\W//g' (on Arch Linux if it matters)? How do I find that out?
8
votes
1answer
888 views

How to check a hash sum file on FreeBSD?

Situation I'm on FreeBSD 11.2 without GUI. I'm brand new to BSD systems. Suppose we have a SHA512SUM file generated on FreeBSD with: sha512 encrypt-file-aes256 decrypt-file-aes256 > SHA512SUM ...
2
votes
5answers
5k views

Generate MD5sum for all files in a directory, and then write (filename).md5 for each file containing that file's MD5SUM

I have a directory full of files. Each file will be copied to a specific type of destination host. I want to calculate an MD5 sum for each file in the directory, and store that md5 sum in a file that ...
3
votes
2answers
806 views

Checking the integrity of TAR files for backup

I want make a backup of my Home directory and I've read a good method is to use the tar tool, and I think it suits me well since all I need to do is create a .tar of every folder in the Home directory ...
15
votes
1answer
16k views

Use md5sum to verify file in a script

I want to verify a file using md5sum -c file.md5. I can do that by hand, but I don't know how to check the validity in a script.
171
votes
17answers
226k views

How do I get the MD5 sum of a directory's contents as one sum?

The md5sum program does not provide checksums for directories. I want to get a single MD5 checksum for the entire contents of a directory, including files in sub-directories. That is, one combined ...
8
votes
4answers
29k views

Bash script detecting change in files from a directory

I am trying to make a script that detects if any of the files in a directory were changed within a 2 seconds interval. What I have so far is: #!/bin/bash for FILE in "${PWD}/*" do SUM1="$(md5sum $...
6
votes
4answers
599 views

Rename files based on checksum

I have a md5sum list and a lot of file which I wanted to checksum and then rename them according to the md5sum list. Example of the list: d4cd401ade018617629b39efed7b7be4 foo.bar ...
-1
votes
1answer
70 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
4
votes
1answer
9k views

Using hashed password for adduser function in Linux

Sorry, I´m novice in Linux and I am looking for information, how to create new user account in Debian with pre-defined encrypted password. I have a function in bash, that if new user´s id´s are not ...
2
votes
4answers
9k views

Get checksum of directory on bash

I was wondering: Is it possible to create a checksum of a directory (using something like md5sum) Is it possible to recursively create checksum for each file inside the dir (and then print it out)? ...
2
votes
1answer
62 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?
-4
votes
1answer
126 views

A lot of duplicates…no fdupes,i want to make a script

No fdup please..I want to make a script. I have a lot of file duplicates,there are more than 200 I made ( is under construction ) a bash script which make md5sum on every file,then with uniq i put ...
0
votes
1answer
40 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
111 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 ...
7
votes
5answers
650 views

Using pv with md5sum

I used md5sum with pv to check 4 GiB of files that are in the same directory: md5sum dir/* | pv -s 4g | sort The command completes successfully in about 28 seconds, but pv's output is all wrong. ...
22
votes
2answers
2k views

md5sum prepends '\' to the checksum

Why md5sum is prepending "\" in front of the checksum when finding the checksum of a file with "\" in the name? $ md5sum /tmp/test\\test \d41d8cd98f00b204e9800998ecf8427e /tmp/test\\test The same ...
0
votes
2answers
158 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
779 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 ...
6
votes
2answers
22k views

Does the hash of a file change if the filename changes?

Does the hash of a file change if the filename or path or timestamp or permissions change? $ echo some contents > testfile $ shasum testfile 3a2be7b07a1a19072bf54c95a8c4a3fe0cdb35d4 testfile
-1
votes
1answer
104 views

find the relevant files with their checksum

We want to find all the .jar files with their chksum. find . -name "*.jar" ./lib/ant-1.8.0.jar ./lib/ant-launcher-1.8.0.jar ./lib/backport-util-concurrent-3.1.jar ./lib/classworlds-1.1-alpha-2.jar ./...
1
vote
3answers
1k views

Difficulty using 'md5sum -c'

I'm having some difficulty using md5sum to verify some copied files. I have two directories: dir1 and dir2. In dir1 there are five files: file1, file2, file3, file4 and file5. dir2 is empty. If I do:...
1
vote
1answer
58 views

awk inside another awk's system

I am given a file containing the md5 values for files within the same folder. The information is in the file md5checksums.txt in the following format: b0da7ead9d82a3494d7e0a7099871ef4 ./...
1
vote
1answer
894 views

How to install md5sum in FreeBSD?

I am using FreeBSD 11.1 I am unable to find right way to install md5sum package in FreeBSD installation. I need md5sum for Conda installation. Please suggest if you know anyways.
2
votes
1answer
3k views

How to fix error message Hash sum mismatch error

I recently upgraded my Linux Mint to Rafaela 17.2 and while I was tweaking a little bit the interface and installing some themes and icons, I found myself with this annoying error message: W: ...
2
votes
2answers
617 views

Compare tarballs with sha1sum

I create a .tgz/tarball with $(npm pack). I then run: sha1sum oresoftware-npp-0.0.1001.tgz and I get: 77c58da68593dcdcd14bb16a37f5f63ef42bab63 oresoftware-npp-0.0.1001.tgz I want to compare ...
-1
votes
1answer
33 views

Command line generates different hashsum than online hash generator… [duplicate]

Input text: test Online MD5 hashsum generator: 098f6bcd4621d373cade4e832627b4f6 echo "test" | md5sum: d8e8fca2dc0f896fd7cb4cb0031ba249 Also the same happens to sha512sum and sha1sum. Why does Linux ...