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
-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 ...
1
vote
1answer
43 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 ...
3
votes
2answers
80 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 ...
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 ...
2
votes
1answer
26 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?
0
votes
1answer
30 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
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 ...
1
vote
1answer
437 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
44 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
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 ...
-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
2
votes
1answer
59 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
39 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
97 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
144 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
745 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 ...
7
votes
5answers
640 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. ...
-1
votes
1answer
102 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
1answer
57 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 ./...
0
votes
3answers
598 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 ...
-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 ...
7
votes
1answer
867 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 ...
1
vote
1answer
337 views

Using korn shell to compare local and remote MD5 over sftp

I am in need of creating and checking checksums between a local file, and the remote file I just pushed. If the MD5 checks, continue, else break. This needs to be in KORN shell scripting because we ...
0
votes
2answers
45 views

Restoring files names using md5 file

I recovered some files from my HDD, but there names were changed. Also, I found md5 files of the recovered files. How can I use the md5 file to restore files names?
-4
votes
2answers
51 views

Remove all before last “:” in Terminal [closed]

I have millions of lines with these 2 formats all in one merged file. hash:salt:password hash:password hash:hash What I want is just keep the password, then remove duplicates and after remove ...
2
votes
2answers
609 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 ...
2
votes
4answers
654 views

Reverse engineering IP camera firmware to find admin password

I'm trying to reverse engineering an IP camera firmware and found the complete ROM OS but I would like to find out the system password so I have looked at /etc/passwd. The file is not there, it is ...
0
votes
1answer
328 views

md5sum warning about formatted lines

I am trying to validate a file using the following command: $ md5sum myfile_v2.1.ova -c myfile_v2.1.md5 md5sum: myfile_v2.1.ova: no properly formatted MD5 checksum lines found myfile_v2.1.ova: OK ...
0
votes
2answers
564 views

get base64 value from openssl md5 command in script

I am trying to get the base64 md5 value of the latest file in an oracle backup directory: for file in "$(find /oracle/PD1/sapbackup/b*/ -newermt $date -type f)"; do openssl md5 -binary $file | ...
0
votes
1answer
89 views

md5 sum (fdupes) vs sha256sum - why different results - ubuntu server

I have a directory structure that I know contains a LOT of duplicate files. (the dir tree has 67K files with around 8K duplicates). Naturally, the duplicates are all same size in bytes and the same ...
0
votes
2answers
457 views

Postfix configuration issue with fips on centos 7; mailgun relay

I am trying to setup postfix to relay all mail generated on the local machine via SMTP to a mailgun relay. I have used the mailgun relay before with success on an ubuntu server, but I am migrating to ...
1
vote
1answer
882 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.
5
votes
1answer
837 views

Tar produces different files each time

I often have large directories that I want to transfer to a local computer from a server. Instead of using recursive scp or rsync on the directory itself, I'll often tar and gzip it first and then ...
1
vote
2answers
2k views

md5sum failed to open a file, directory issue

I'm having a problem checking certain .md5 files, they are all files that are in directories which have been renamed since the files were downloaded. [User1 Directory X]$ md5sum -c file1.txt.md5 ...
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?
9
votes
3answers
7k 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
1answer
208 views

sha512sum from terminal is wrong [duplicate]

Runing echo "zyc.txt" | openssl dgst -sha512 (stdin)= 11aa472bf4c97ffb1fae06a3f7175127da084c5dfb840038ee308b37136330e5b6a56cc053c62881f10aec88948d8addb1d4844496cdb08e4067b4fd4601330e or ...
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 ...
4
votes
1answer
966 views

How do I prevent gpg from including SHA1?

apt-get is complaining that signatures are invalid and that the InRelease file is not signed (see Using Centos to sign .deb packages for background). On the server, I have verified using gpg that ...
2
votes
1answer
3k views

Generate HMAC in Bash without revealing the secret

I'd like to compute a HMAC-SHA512 digest in my bash script. So far I've found only this repeated many times over many different sites. echo -n message | openssl dgst -sha256 -hmac secret -binary >...
-2
votes
1answer
260 views

MD5 hash from for loop [closed]

I have the following string: "VGxkTk1GcHFTWGRhUjBacFkycENhMWx0VFRWT1IxazBUMVJXYUZwSFNUQmlWR1JxVGtSVmVVOVZjR3RhYWtFOQ%3D%3D" and a for loop: for(var i=0,k=3,l=643; (i<=20 && l>200) || k&...
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?...
-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 ...
8
votes
1answer
587 views

Why does `md5sum` not give the same hash as the Internet does?

I want to find the md5 hash of the string "a", but running echo "a" | md5sum gives me another hash than what I get if I search the internet (for example using DuckDuckGo or the first search result I ...
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. ...
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 ...
1
vote
1answer
603 views

Echo hash only from shasum

Is there a way to get shasum to only print the hash? I know this can be achieved by piping the output to another program, e.g. shasum something | cut -d' ' -f1 Is there a way to achieve this only ...
4
votes
1answer
218 views

How Linux can compare old and new password?

I know that on Linux (at least debian) every password are hashed and stored in /etc/shadow. However thanks to the libpam-cracklib you can add some rules on passwords. For instance in /etc/pam.d/...