Thanks itkamaraj. The problem I'm having now though is that I am scanning the directory so the file that I'm using is stored in entry->d_name and when I call system("md5sum entry->d_name") it is actually trying to use entry->d_name instead of the actual filename. Do you know how I can get around this? Here's some of my code
Hi all,
I am kinda puzzled. When and Why do we use md5sum? I've read man pages for mp5sum, but didn't get anything out of it. Please, can someone explain this to me in couple of words.
Thank you all. (1 Reply)
i downloaded a Linux distribution from a FTP site today, and i found there is a file named MD5SUM in the same directory, with the following contents:
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
c9a4d963a49e384e10dec9c2bd49ad73 valhalla-SRPMS-disc1.iso
41b03d068e84d2a17147aa27e704f79b ... (1 Reply)
Tim Bass
Thu, 15 Nov 2007 23:55:07 +0000
*I predict we may experience less*debates*on the use of the term “event cloud”*related to*CEP in the future, now that both IBM and Google* have made announcements about “cloud computing” and “computing cloud”, IBM Turning Data Centers Into ‘Computing... (0 Replies)
hi All:
i write a adduser script in perl , but I don't know how to deal with the password , for it stored as md5. and i don't use the shell
command passwd. give me some advice...thanks (1 Reply)
something strange is that i find the md5sum command in different linux generate different result, for example, i have tried the same file in CentOS and Rhel, The md5 results are different, it is quite headache, who know the tricks? (3 Replies)
Hello,
I need to download multiple files from an FTP server but occasionally they arrive in error so I need to perform an integrity check. I've been attempting to write a bash script that does the following:
Downloads all files including those in sub directories
Perform md5sum using... (4 Replies)
Hi all,
I have to verify the integrity of a ISO image that is downloaded periodically on my PC. In order to do that, I've written a bash script that use the command md5sum with the aim to match the generated code with the default one created with the SIO image. The problem is that, if I start... (1 Reply)
Hello,
First of all I want to apologize because i'm not a admin or coder and maybe all my efforts to write only this small script in my life would need one week full time reading man pages and forums but...
I don't have the money to offer me to get this time and the script I want to do seems... (5 Replies)
I am getting No such file or directory if my variable contains white spaces... Is there a way to fix this?
This works
x="1.md5"
md5sum -c "$x"
This, does not
x="23\ 5\ 6\ 7\ 8\ 9\ 10.md5"
md5sum -c "$x"
md5sum: '23\ 5\ 6\ 7\ 8\ 9\ 10.md5': No such file or directory
How do I fix... (1 Reply)
Discussion started by: soichiro
1 Replies
LEARN ABOUT DEBIAN
nettle-hash
SEXP-CONV(1) Nettle tools SEXP-CONV(1)NAME
nettle-hash - compute message digests
SYNOPSIS
nettle-hash -a ALGORITHM [OPTIONS] [FILE]...
DESCRIPTION
This manual page documents briefly the nettle-hash command. This manual page was written for the Debian GNU/Linux distribution because the
original program does not have a manual page. Instead, it has documentation in the GNU Info format; see below.
nettle-hash is a program that computes various message digests. The output is different from the familiar md5sum and sha*sum family. For
each file, the file name and a colon is printed first, unless input is read from standard input, in which case nothing is printed. Then the
hash is printed in chunks of 64 bits (16 hexadecimal digits) followed by the name of the algorithm. In raw (binary) mode, the hash is not
split in chunks and is not followed by a newline.
OPTIONS
This program follows the usual GNU command line syntax, with long options starting with two dashes (`-'). A summary of options is included
below. For a complete description, see the Info files.
-a, --algorithm=algorithm
Compute hash using algorithm.
-l, --length=length
Truncate digests at length octets. It is an error to specify a length greater than the normal length of the selected digest.
--list List supported hash algorithms.
--help Show summary of options.
-V, --version
Show version of program.
SEE ALSO md5sum(1), sha1sum(1), etc.
AUTHOR
This manual page was originally written by Magnus Holmgren <holmgren@debian.org>, for the Debian GNU/Linux system (but may be used by oth-
ers).
nettle 2.2 July 2011 SEXP-CONV(1)