We’re rewarding the question askers & reputations are being recalculated! Read more.

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
2answers
69 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
4k 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
643 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
644 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 ...
2
votes
2answers
798 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
29 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
358 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
61 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
915 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), ...
3
votes
2answers
3k views

How to checksum a CD/DVD? (to verify integrity of my Debian installation)

So I'd like to checksum my Debian 9.0 installation DVD to be able to compare it to the respective .iso file's hashes and the published hashes to be able to verify my installation's integrity. I ...
1
vote
1answer
7k views

How to unpack .tar.gz.md5 file in Linux?

I have a file called gdac.broadinstitute.org_KIRC.Merge_Clinical.Level_1.2016012800.0.0.tar.gz.md5 Can anyone tell how to unpack this? I haven't seen such files till now. Thank you
1
vote
0answers
53 views

Attributes of Swap Partition

I'm doing some research in security of Linux-based OS. Specially, I'm trying to understand the structure of Linux (non-crypto) Swap file / Swap partition. For my research, I use Linux Ubuntu 16.04 x64....
1
vote
2answers
413 views

Convert identical files to hardlinks [duplicate]

I have a lot of music in a tree under one directory, saved in whatever format I initially got it in, for quality. I have a second directory tree which is similar in structure, but with all files in a ...
1
vote
3answers
442 views

Hash a file by 64MB blocks?

I have a very large file (200GB). Apparently when I transfer it over it did not copy correctly. The sha1 hash on both are different. Is there a way I can divide the file up to blocks (like 1MB or 64MB)...
2
votes
1answer
879 views

Different methods to get SHA1 give different results

I'm learning about SHA1 (specifically wrt Git), and I wanted to sanity-check my understanding by calculating a string's SHA1 with different methods - I expected identical SHA1 hashes, but instead I ...
4
votes
1answer
824 views

Encrypt & obfuscate filenames

I am looking for a backup solution and while trying to anonymize and protect my data one of the problems I've found is that the filenames leak a lot of information. I am looking for a piece of ...
0
votes
2answers
488 views

md5sum progress when piped

I'm comparing two USB devices post-rsync with md5sum /usb1/* /usb2/* | sort such that all the files, which are at the root of the drives, have their md5 sums calculated, then the output is sorted by ...
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
60 views

why md5sum 2>&1 > /dev/null show error message [duplicate]

I have command like this: md5sum -c {FILENAME} 2>&1 > /dev/null || ./upload {FILENAME} and it show error if file is missing or invalid, I need to use this in order to hide the message: ...
1
vote
2answers
870 views

how to make a loop with md5sum test on a bash script?

I've this script that creates a mysql dump of a database and sends it to a storage server. But I see that, sometimes, the generated files is of wrong size, even sending the file with rsync. I'd like ...
1
vote
1answer
243 views

Can I recreate a gzip file exactly, given the original uncompressed file?

I have a series of gzip files which I wish to store more efficiently using xz, without losing traceability to a set of checksums of the gzip files. I believe this amounts to being able to recreate ...
0
votes
2answers
983 views

Kali Linux upgrade fails on Metasploit with hash checksum error

I have just created a fresh boot of Kali Linux in order to begin learning penetration testing and security vulnerabilities so hopefully I can find a few 0days, then sell information on them to ...
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
80 views

What is the point of hashing?

I was looking at my companies hashing implementation and I saw that the passwords for the root user are stored in base64 encoding. What is to stop anyone from simply copying the password and doing a ...
0
votes
1answer
77 views

How does a CentOS 7 install verifies integrity?

How can the media (DVD) contain the hash if the hash is about the DVD? :) Before installing a CentOS 7, it usually wants to check the "media" integrity. Or is it using many smaller hashes to check ...
1
vote
1answer
1k views

How to verify binary SHA checksum

I have a file.bin and file.bin.sha. The file.bin.sha has 32 bytes and contains binary data. How can I verify the checksum? sha256sum complains about no properly formatted SHA256 checksum lines found.
2
votes
2answers
1k views

Find a file by hash

I have a file x1 in one directory (d1) and I'm not sure if the same file is already copied (x2) in another directory (d2) (but automatically renamed by application). Can I check if hash of file x1 ...
1
vote
1answer
1k views

computing hash function for directory in linux [closed]

Can we compute hash function(sha1 and md5) for an empty directory or for directory itself in linux?
5
votes
2answers
493 views

Different hash value of large rsynced file on centos and ubuntu?

I rsynced a large file from remote centos to local ubuntu with rsync -avzP user@<remote-ip>:/path/to/file . It reported the transfer went well: sent 30 bytes received 257,293,476 bytes 1,...
6
votes
4answers
612 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 ...
0
votes
1answer
57 views

Show pairs of files with same m5dsum

I need to calculate md5sum of all files in a directory and print them in a line if their md5sum is same. for example, if we calculate md5sums: file1, md5sum abcdefgh file2, md5sum 21safdsg file3, ...
0
votes
1answer
80 views

Dealing with duplicate hash data in text file - keeping one unique line and deleting duplicates

Thanks to this forum I was able to process a large text file containing filenames and hashes and end up with a list of files with identical hashes as shown below: file_35.txt ...
4
votes
1answer
465 views

Text file containing filenames and hashes - extracting lines with duplicate hashes

I have generated a large text file containing filenames and sha-256 hashes using the format below - new line at the end of each line after the hashes. file_1.txt ...
0
votes
1answer
174 views

Comparing files in awk/bash

I came across a problem and have no idea how to find the OPTIMAL solution. I have a list of files that looks like this: file1\0file2\0...fileX\0\0file(x+1)\0 Every name of file is separated by a \0 ...
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: $...
-2
votes
1answer
256 views

Where is the GNU checksum file format defined?

Where is the GNU checksum file format defined? I don't see any mention of the checksum file format at the GNU documentation website
0
votes
1answer
680 views

ubuntu iso sha256 checksum

I've been having some troubles with my newly installed Ubuntu system (random freezing) and I wanted to verify that the iso I received was not corrupted by checking the sha256 hashes (I know I should ...
14
votes
3answers
25k views

Compute bcrypt hash from command line

I would like to compute the bcrypt hash of my password. Is there an open source command line tool that would do that ? I would use this hash in the Syncthing configuration file (even if I know from ...
4
votes
3answers
355 views

md5 sum in debian's official directory

Why there are 12 md5 sums while there are only 5 ISOs in Debian's official site? http://cdimage.debian.org/debian-cd/current/i386/iso-dvd/ I just download the debian-8.5.0-i386-DVD-1.iso and check ...
1
vote
1answer
584 views

Best way to compare a local file to a remote file http

I am looking to compare lots of local files with remote files in a http repository. The idea is that a bash script will check every file in the directory and compare with the remote version. If the ...
1
vote
1answer
204 views

How can I decrypt back a base64 encoded shaX binary string?

For the encrypted base64 encoded SHAX strings, what command can decrypt it back to original string, thanks
5
votes
1answer
1k views

How to create sha1 checksums of files inside a tar archive without using much disk space

I would like to get the sha1 checksums of all files inside a simple tar archive as a list, or a new file Without using the disk space to unpack the big tar file. Something with piping and calculating ...
2
votes
1answer
1k views

Why does SHA 256 sum change when writing image to a drive?

I've noticed that if I write an image via dd to a USB drive and then sha256sum that image; the sum changes. Why? It's never identical to that of the ISO. I am running: sha256sum /dev/sdb (on the ...
0
votes
1answer
127 views

Using http remote MD5 hash

I would like to use the md5sums function of pkgbuild without keeping track of new hashsum at each update, and just change the pkgver variable to build a new version of my package. md5 are available ...
4
votes
3answers
1k views

md5sum check (no file)

So I'm trying to check dozens of files using a shell script. The file check happens at different times. Is there a way to do this? md5sum -c 24f4ce42e0bc39ddf7b7e879a File.name or even better ...
10
votes
3answers
15k views

packer - ERROR: One or more PGP signatures could not be verified!

I'm trying to install ncurses5-compat-libs on Arch Linux with packer. But I get this error: ==> ERROR: One or more PGP signatures could not be verified! How can I fix it?
-4
votes
1answer
326 views

check if the Linux kernel my PC runs has been maliciously modified

$ uname -a Linux mypcname 3.16.0-4-686-pae #1 SMP Debian 3.16.7-ckt25-2 (2016-04-08) i686 GNU/Linux I want to check that this ^^ Linux kernel on my PC has not been maliciously tampered with. I have ...
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 $...
2
votes
2answers
3k views

How to disable warning message for Apt repositories using SHA1? [duplicate]

A recent update of apt (in Debian unstable) generates an warning message for repositories SHA1 signed. I get the idea you should privilege SHA2 signed repositories but I use some softwares which does ...