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
81
votes
8answers
213k 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.
29
votes
2answers
49k views

/etc/shadow : how to generate $6$ 's encrypted password? [duplicate]

In /etc/shadow file there are encrypted password. Encrypted password is no longer crypt(3) or md5 "type 1" format. (according to this previous answer) Now I have a $6$somesalt$...
0
votes
3answers
29k views

How do I redirect command output to a file?

I have a command that I run in a folder that outputs MD5 hashes and filenames on the terminal: ls |sort -nr | xargs md5sum I need this output in a text file that I can download and compare to ...
17
votes
3answers
18k views

Calculate md5sum of a CD/DVD

I have an ISO file, which I burned to a CD. Now how can I check if the CD is correctly created? I would like a command that calculate the hash sum that I can use to check with the hash sum I calculate ...
8
votes
1answer
511 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 ...
169
votes
17answers
219k 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 ...
29
votes
5answers
25k views

How can I get a base64 encoded shaX on the cli?

sha1sum outputs a hex encoded format of the actual sha. I would like to see a base64 encoded variant. possibly some command that outputs the binary version that I can pipe, like so: echo -n "message" |...
3
votes
1answer
3k views

wpa_supplicant store password as hash (WPA-EAP with phase2=“auth=PAP”)

Is there a way to store my password in /etc/wpa_supplicant/wpa_supplicant.conf as some hash instead of plaintext? By "password" I refer here to the password used for phase2 authentification. I do not ...
19
votes
6answers
50k views

generate consistent machine unique ID

Can we generate a unique id for each PC, something like uuuidgen, but it will never change unless there are hardware changes? I was thinking about merging CPUID and MACADDR and hash them to generate ...
29
votes
3answers
9k views

Find a file when you know its checksum?

I have the md5sum of a file and I don't know where it is on my system. Is there any easy option of find to identify a file based on its md5? Or do I need to develop a small script ? I'm working on ...
4
votes
3answers
6k views

HDD image file checksum does not match with device checksum

I have a 660297728 byte HDD image with MD5 hash f5a9d398e974617108d26c1654fe7bcb: root@T42# ls -l image -rw-rw-r-- 1 noc noc 660297728 Sep 29 19:00 image root@T42# md5sum image ...
18
votes
1answer
20k views

What methods are used to encrypt passwords in /etc/passwd and /etc/shadow?

A careful examination of the /etc/passwd and /etc/shadow files reveal that the passwords stored are hashed using some form of hashing function. A quick Google search reveals that by default, the ...
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 ...
11
votes
4answers
8k views

how can a makefile detect whether a command is available in the local machine?

I began to use org-mode for planning out my tasks in GTD-style system. Putting every org files in a directory of a Dropbox folder, I run emacs to edit / manage these files from three different local ...
8
votes
3answers
6k 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?
3
votes
2answers
2k 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 ...
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 ...
10
votes
1answer
5k 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?
7
votes
5answers
579 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. ...
5
votes
1answer
752 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 ...
4
votes
3answers
2k views

How to delete duplicates of files in directory and subdirs?

Is there any fast method to delete duplicates of files based on any hash sum (i.e. SHA1 to be fast). Because I've got some mess in my music files.
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 ...
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)? ...
1
vote
1answer
1k views

Good “progress bar” about md5sum checking progress?

I'm using this right now: time md5sum -c *.txt | pv | grep -v ': OK$' but aren't there any smart solutions that can list that how many files haven't been checked? I mean I have many md5sum's in .txt ...
1
vote
1answer
293 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 ...
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.
4
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 ...
3
votes
2answers
3k views

Store password as hash in wpa_supplicant.conf? [duplicate]

This question is very much related to this one. I want to log into a user and password protected wifi which uses PEAP and maybe MS-CHAPv2. My wpa_supplicant.conf has to contain an entry like this: ...
3
votes
2answers
2k views

How to use md5sum for checksum with an md5 file which doesn't contain the filename

I have 2 files test.txt and test.txt.md5. I would like to verify the checksum of test.txt. The gnu tool md5sum requires an md5 file with the following format "[md5-hash][space][space][filename]" (...
1
vote
1answer
566 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 ...