Stack Exchange Network

Stack Exchange network consists of 175 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Questions tagged [hashsum]

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

-1
votes
1answer
27 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
53 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
27 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
44 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
75 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
199 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
447 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
47 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
50 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
2answers
176 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
24 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 ...
5
votes
1answer
451 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
225 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
38 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
447 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
455 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
169 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
335 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
63 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
269 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 ...
0
votes
0answers
154 views

How can I run hashcat on Aspire E1-572?

I tried to find strings whose md5-has is known. I tried to do it by using hashcat. I got an error: sudo ./hashcat64.bin hashes hashcat (v4.1.0) starting... clGetPlatformIDs(): ...
1
vote
1answer
549 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.
4
votes
1answer
536 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
856 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 ...
8
votes
1answer
4k views

How to find the hashing algorithm used to obfuscate 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?
5
votes
3answers
3k 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
139 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 ...
3
votes
1answer
671 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
2k 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
210 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&...
4
votes
2answers
904 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
107 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
315 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 ...
2
votes
1answer
4k 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
4k 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
481 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
179 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/...
0
votes
0answers
18 views

Formatting output [duplicate]

So I am using this command to sort files based on uniqueness of their content find * -type f -exec md5sum '{}' ';' | sort | tee ../file.txt | uniq -c -w 32 | sort -n | awk '{print $2}' | xargs -I% ...
0
votes
2answers
62 views

How to verify checksums if files to check are mounted on different location?

I use OS X and have several checksum files that are generated from different external harddisks. If the checksum files are in the same location as the files to check then I can simply run eg.: ...
5
votes
1answer
2k views

OSX: Generate MD5 checksum recursively in a textfile containing files with corresponding checksum

In a directory withmultiple subdirectories but only one folder deep containing tiff-files I'd like to generate a md5 checksum that writes the filename with the corresponding checksum into a textfile. ...
0
votes
2answers
461 views

awk - compare 2 files and use md5 function

I need to hash each line of second file (md5) and compare it with the first file line by line like that : awk -F, 'FNR==NR {a[$1]; next}; !(md5($1) in a)' file1 file2 > file3 How can I do this ...
2
votes
0answers
455 views

Why does md5sum give inconsistent results on device files?

Backing up some USB flash-drives on Lubuntu 16.04.3 LTS. Plug USB drive into laptop. Automounter does its stuff. I remount all partitions as read-only sudo mount -o remount,ro /dev/sdxn Copy USB ...
1
vote
1answer
2k views

How to check md5sum between two directories?

I have two directories. I want to check whether all files in one directory are same as that of other directory or not by using md5sum. If the md5sum results in a difference, I want to apply diff. So ...
1
vote
2answers
576 views

Find files based on MD5 and delete

I want to delete same file with different names scattered in folders. This command works fine for searching and listing the files. Then I manually delete the files. Is it possible to add delete ...
0
votes
1answer
28 views

In directory how can find files and apply md5sum of all files at same time?

How can find files then apply md5sum of all files?
2
votes
1answer
298 views

Different hash code when piping “sha1sum” to “tar” output

In AIX system (v 7.1) sha1sum is calculating different hash codes when its piped directly to the output of tar compared to when it reads a file. What are the reasons for this ? Are there ways to ...
3
votes
0answers
60 views

Do package managers check the hashes of packages? [duplicate]

Do package managers such as Synaptic and Apper check the hashes of installed as well as updated/downloaded packages by comparing them to online databases? Do they maybe even identify packages by ...
1
vote
2answers
704 views

How to separately checksum each “block” of a large file

I am storing some multi-GB files on two hard drives. After several years in offline storage (unfortunately in far from ideal conditions), I often get some files with bit-rot (the two copies differ), ...