Questions tagged [hashsum]

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

A hash is any well-defined procedure or mathematical function that converts a large, possibly variable-sized amount of data into a small datum, usually a single integer representing the sum of the correct digits in a piece of stored or transmitted digital data, against which later comparisons can be made to detect errors in the data. The values returned by a hash function are called hash values, hash sums, checksums or simply hashes.

284 questions
261
votes
21 answers

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 checksum made out of all the files. Is there a way…
user17429
120
votes
13 answers

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.
student
  • 17,875
  • 31
  • 103
  • 169
81
votes
4 answers

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?
Rui F Ribeiro
  • 55,929
  • 26
  • 146
  • 227
71
votes
7 answers

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 here that I can reset the password by editing the…
Gabriel Devillers
  • 1,296
  • 1
  • 11
  • 17
43
votes
5 answers

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" | | base64 or if it outputs it…
xenoterracide
  • 57,918
  • 74
  • 184
  • 250
36
votes
4 answers

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 AIX 6 without the GNU tools.
Kiwy
  • 9,415
  • 13
  • 49
  • 79
35
votes
2 answers

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

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$someveryverylongencryptedpasswd as entry. I can no longer use openssl…
Archemar
  • 31,183
  • 18
  • 69
  • 104
34
votes
7 answers

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?
pepite
  • 1,053
  • 3
  • 14
  • 32
33
votes
2 answers

Why does the gzip version of files produce a different md5 checksum

I have four files that I created using an svndump test.svn test2.svn test.svn.gz test2.svn.gz now when I run this md5sum test2.svn test.svn test.svn.gz test2.svn.gz Here is the output 89fc1d097345b0255825286d9b4d64c3 …
whoami
  • 3,750
  • 7
  • 27
  • 26
30
votes
7 answers

Simultaneously calculate multiple digests (md5, sha256)?

Under the assumption that disk I/O and free RAM is a bottleneck (while CPU time is not the limitation), does a tool exist that can calculate multiple message digests at once? I am particularly interested in calculating the MD-5 and SHA-256 digests…
Lekensteyn
  • 20,173
  • 18
  • 71
  • 111
29
votes
6 answers

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 a consistent ID, but I have no idea how to parse…
uray
  • 3,830
  • 11
  • 36
  • 42
25
votes
2 answers

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 is noted for every other utility.
jsaji
  • 353
  • 3
  • 6
24
votes
1 answer

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?
Dorin Botan
  • 365
  • 1
  • 2
  • 9
24
votes
2 answers

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
tarabyte
  • 4,166
  • 10
  • 36
  • 48
23
votes
1 answer

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 passwords are encrypted using DES. If an entry begins…
Nathan Osman
  • 6,170
  • 10
  • 40
  • 51
1
2 3
18 19