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
37 votes
4 answers
14k 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 ...
Kiwy's user avatar
  • 9,554
0 votes
2 answers
6k views

different checksum of original file and copied file

I am running a script that copy a file from one location to other. In script I am calculating MD5sum using below command of original file and copied file and they are different: echo -n "file" | ...
Infotechie's user avatar
2 votes
1 answer
8k views

What is qemu-img consistency check?

I would be glad if someone could explain the meaning of qemu-img check <filename> command. Man pages provide very poor information about it: check [-f fmt] [-r [leaks | all]] filename ...
Vitaly Isaev's user avatar
1 vote
1 answer
124 views

validate all packages to be correct

I have two machines. One of which started to act strange lately (aptitude segfaulting, apt requiring a library named lkbm.qo.6). As the broken machine is not vital to me, I don't want to squash and ...
Angelo Fuchs's user avatar
6 votes
3 answers
8k views

using sed to replace pattern with hash values

I want to search the file and replace specific pattern with its hash (SHA1) values. For example, let file.txt has the following content: one S56G one two three four five V67X six and I want to ...
user1734905's user avatar
2 votes
3 answers
5k views

md5 or sha1 while copying a file

Is there a way in any linux distro to perform a md5sum or sha1 check while the file is being transferred from a local partition to an NFS one? Example: I have a NFS mounted drive and a very big file ...
Oktav's user avatar
  • 121
5 votes
1 answer
537 views

Using kernel cryptographic functions

Is it possible to use kernel cryptographic functions in the userspace? Let's say, I don't have md5sum binary installed on my system, but my kernel has md5sum support. Can I use the kernel function ...
Martin Vegter's user avatar
2 votes
1 answer
933 views

How to compute a thumbnail filename from the shell?

I started noticing some time ago in Xfce4 that when I sent some file to the Trash, tumbler (the Xfce4 thumbnailer) would cause very high I/O load for quite some time. Upon investigating the issue, I ...
admirabilis's user avatar
  • 4,722
0 votes
2 answers
506 views

md5sum check fails for git-man-pages.tar.gz package

When I try to verify the integrity of git-man-pages package I downloaded from "http://code.google.com/p/git-core/downloads/detail?name=git-manpages-1.8.4.tar.gz&can=2&q=" it fails with error. ...
Gokul's user avatar
  • 1,071
1 vote
1 answer
403 views

C-library HMAC_MD5 questions

We are working with an older software product that has some limited programming capabilities - specifically, no bit manipulation functions. This has created a significant problem as we need to ...
ingenuitor's user avatar
3 votes
2 answers
5k 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: ...
k.stm's user avatar
  • 709
18 votes
4 answers
37k 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 ...
Ben Griffiths's user avatar
0 votes
1 answer
1k views

How to identify error in a particular file while checksum verification (which file having problem while verification) in shell script

I have two files on ftp location in csv.gz format and their checksum is in .csv.gz.md5 format. I am copying this file in my local system. I am generating check sum for it through md5sum. Now I am ...
Sandeep Singh's user avatar
0 votes
1 answer
807 views

How to generate 4 WEP keys with linux commands?

I have a sagem router. this router is able to generate 4 WEP keys from a given passphrase. Example: Passphrase: "hahahahahahahahahahahahahahahahahahahahahahahahahahahahahahahaha" key1: ...
MOHAMED's user avatar
  • 301
5 votes
1 answer
4k 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 ...
Daniel Jour's user avatar
0 votes
1 answer
741 views

md5 String and File different

Why do I become a different hash when I try: md5 <<< "Hello" md5 -s "Hello" Is it because of a possible line break in the first example?
user36508's user avatar
2 votes
0 answers
182 views

Compare two cdroms

I would like to verified if two CD-ROMs (UDF) identical or not. One cdrom will be read at Windows and the other CD-ROM at Linux, where the CD-ROMs can be with different burning programs. This means ...
Eagle's user avatar
  • 163
3 votes
1 answer
575 views

md5sum change after mount?

I have a ext3 filesystem on a .img file. After mounting and unmounting it, I noticed that the md5sum is changed, even if no file inside was changed! md5sum myfilesystem.img XXXX myfilesystem.img ...
michelemarcon's user avatar
5 votes
4 answers
10k views

is it possible to create a file given an md5 hash

I know this is a strange question, and I know that md5sum is nearly impossible to break... but I'm just wondering if someone here knows if it is possible to recreate a file given it's md5sum hash? I ...
icasimpan's user avatar
  • 439
4 votes
1 answer
4k views

Trailing space when generating md5

I apologize if this has already been answered, or if the answer is simpler than I realize, but I can't seem to figure out the following: When I try to generate an md5 from a string, either with echo ...
Alex Krycek's user avatar
2 votes
3 answers
821 views

Sanity checking MD5 sums

Do MD5 checksums contain a checkbit? I have to copy some MD5 checksums by hand (there's no other way) and was wondering whether there is any code out there that can validate a checksum as being valid ...
Rich's user avatar
  • 4,529
121 votes
13 answers
373k 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.
student's user avatar
  • 18.3k
6 votes
1 answer
5k views

RIPEMD-160 file digest

How can I make a file digest under Linux with the RIPEMD-160 hash function, from the command line?
Grzegorz Wierzowiecki's user avatar
3 votes
2 answers
6k views

How to create a md5-file for every folder in a drive recursively?

I'm searching for a script which creates a md5 chechsum file for every single folder inside drive recursivley? I do have a copy of md5deep on my machine but I'm not that good in scripting bash.
tristank's user avatar
  • 121
265 votes
21 answers
382k 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 ...
user avatar
3 votes
3 answers
828 views

How do I easily update list of md5sums?

Sometimes I use an unreliable medium (flash) to store a good deal of data. To at least recognise bit flips I store a file with the md5sums alongside. This file is usually created by a variation of ...
antje-m's user avatar
  • 1,583
1 vote
3 answers
30k 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 ...
Zac Anderson's user avatar
34 votes
2 answers
12k views

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 ...
whoami's user avatar
  • 3,870
12 votes
4 answers
15k 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 ...
Federico Magallanez's user avatar
6 votes
3 answers
3k 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.
Hauleth's user avatar
  • 174
1 vote
2 answers
1k views

Fastest hashing method under OpenWRT?

I frequently verify the file integrity on my OpenWrt router by hashing the files. I didn't want to use sha256sum, so I decided to use the faster md5sum. Is there anything even faster available?
LanceBaynes's user avatar
  • 40.2k
2 votes
1 answer
5k views

Running md5sum on a file's contents

md5suming a file is fine, but I cannot seem to invoke md5sum to calculate the hash based only on the file's contents. (For those wondering, I'd prefer that multiple wgets of the same file return the ...
Julian H. Lam's user avatar
2 votes
3 answers
2k views

Rename files with random characters from sha1sum. Will the names be unique?

I'm using this command to rename files with random characters from sha1sum and move all files from subdirectories to the current directory: for fname in `find . -type f`; do mv "$fname" $(echo "$...
Najib-botak Chin's user avatar
14 votes
3 answers
14k views

How to pipe md5 hash result in shell

I am looking for a simple way to pipe the result of md5sum into another command. Something like this: $echo -n 'test' | md5sum | ... My problem is that md5sum outputs not only the hash of the string,...
nmat's user avatar
  • 295
1 vote
1 answer
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 ...
LanceBaynes's user avatar
  • 40.2k
2 votes
2 answers
498 views

Replace all files with identical hash

I want to replace all files in a target path with the same name as original.file AND the same hash as orignal.file with new.file. What's the command to do this? Say I have updated the contents of a ...
svandragt's user avatar
  • 123
23 votes
1 answer
37k 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 ...
Nathan Osman's user avatar
  • 6,240
0 votes
2 answers
826 views

Shell output question

What is the output of date -u +%W$(uname)|sha256sum|sed 's/\W//g' (on Arch Linux if it matters)? How do I find that out?
user avatar
19 votes
3 answers
23k 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 ...
phunehehe's user avatar
  • 20.3k
43 votes
5 answers
48k 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" |...
xenoterracide's user avatar

1 2 3 4 5
6