06-30-2010
- I believe the command is called md5sum, not md5
- $NF prints the last field, which usually is the name of the file the sum belongs to
- Take a look at Digest::MD5 and save yourself some trouble calling external programs
10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
Does anyone know a scipt that includes MD5. I need to run a script that includes MD5 encryption.
Thanks (1 Reply)
Discussion started by: duncang3
1 Replies
2. UNIX for Dummies Questions & Answers
Hi,
how can one find that which encryption algorithm the system is using for keeping the user password in the /etc/passwd or /etc/shadow file.
Is it
1: Hashing ( which considers only first 5 letters of password)
2: MD5 (Which allows arbitry length passwords)
Thanks,
~amit (0 Replies)
Discussion started by: amit4g
0 Replies
3. UNIX for Dummies Questions & Answers
I think it's a problem of gtar, but i'm note sure...
I use gtar to create an archive from a directory
then i use md5 to get an md5 string for the archive
bzip2 to compress the archive
and md5 again for the compressed archive.
I send the file to my backup machine.
When i download the... (1 Reply)
Discussion started by: noratx
1 Replies
4. Linux
I am trying to compare two identical files by using md5 command, but cant get the right command parameters Please help me with any examples. All I want is to know how to compare two identical files which are residing on two different machines in my local network, for example:
Host_A -... (6 Replies)
Discussion started by: greenja
6 Replies
5. Shell Programming and Scripting
Hello everyone,
I am looking to basically creating md5sum files for all iso files in a directory and archive the resulting md5 files into a single archive in that very same directory.
I worked out a clumsy solution such as:
#find files for which md5sum are to be created and store the... (1 Reply)
Discussion started by: SurfTranquille
1 Replies
6. Shell Programming and Scripting
Hi, I tried to write script, which would be able to generate MD5 sums into txt file.. But It won't work.. (I've been trying to fix that over 4 hours, but nothing helps)
Here it is
#!/bin/bash
FILE="nothing1"
POST="nothing2"
I=1
while
do
FILE=`ls -ltR | grep "^-" | tr -s "... (1 Reply)
Discussion started by: TheBarnacle
1 Replies
7. Solaris
Hello good people,
I came across md5 checksum. Can anyone please explain to me what it does and if possible an example of how to use it?
Thank you very much (1 Reply)
Discussion started by: cjashu
1 Replies
8. Solaris
Hi Guys,
I have about MD5 checksum so many times but I can't figure out how to use it. Can someone please show me how to perform an MD5 checksum?
Thanks a lot guys. (1 Reply)
Discussion started by: cjashu
1 Replies
9. Shell Programming and Scripting
I am trying to speed up creating a line by line hash file from a huge file using Perl.
Here is my current (working but too slow) Bash code:
(while read line; do hash=$(echo -n $line | md5sum); echo ${hash:0:32}; done)And here is my Perl code:
perl -MDigest::MD5 -le 'foreach $line ( <STDIN> )... (3 Replies)
Discussion started by: Michael Stora
3 Replies
10. Shell Programming and Scripting
I have about 1500 rows (encoded b64(b64(md5($pass))) algorythm) in a file.
I would like reverse the b64 into md5 hash format.
How could I do that from command line? So I need only the correct md5 hash formats.
These row format:
4G5qc2WQzGES6QkWAUgl5w
P9tKxonBOg3ymr8vOBLnDA... (1 Reply)
Discussion started by: freeroute
1 Replies
LEARN ABOUT DEBIAN
digest::bubblebabble
Digest::BubbleBabble(3pm) User Contributed Perl Documentation Digest::BubbleBabble(3pm)
NAME
Digest::BubbleBabble - Create bubble-babble fingerprints
SYNOPSIS
# Create a fingerprint of a simple string.
use Digest::BubbleBabble qw( bubblebabble );
my $fingerprint = bubblebabble( Digest => "Pineapple" );
# Create a fingerprint of a SHA-1 hash.
use Digest::SHA qw( sha1 );
$fingerprint = bubblebabble( Digest => sha1("hello") );
DESCRIPTION
Digest::BubbleBabble takes a message digest (often generated by either of the MD5 or SHA-1 message digest algorithms) and creates a
fingerprint of that digest in "bubble babble" format. Bubble babble is a method of representing a message digest as a string of "real"
words, to make the fingerprint easier to remember. The "words" are not necessarily real words, but they look more like words than a string
of hex characters.
Bubble babble fingerprinting is used by the SSH2 suite (and, consequently, by Net::SSH::Perl, the Perl SSH implementation) to display easy-
to-remember key fingerprints. The key (a DSA or RSA key) is converted into a textual form, digested using Digest::SHA, and run through
bubblebabble to create the key fingerprint.
USAGE
Digest::BubbleBabble conditionally exports one function called bubblebabble; to import the function you must choose to import it, like
this:
use Digest::BubbleBabble qw( bubblebabble );
bubblebabble( Digest => $digest )
Currently takes only one pair of arguments, the key of which must be Digest, the value of which is the actual message digest $digest. You
should generate this message digest yourself using either Digest::MD5 of Digest::SHA.
Returns the bubble babble form of the digest.
SEE ALSO
The BubbleBabble specification is available at: http://web.mit.edu/kenta/www/one/bubblebabble/spec/jrtrjwzi/draft-huima-01.txt
LICENSE
Digest::BubbleBabble is free software; you may redistribute it and/or modify it under the same terms as Perl itself.
AUTHOR & COPYRIGHTS
Benjamin Trott, cpan@stupidfool.org
Except where otherwise noted, Digest::BubbleBabble is Copyright 2001 Benjamin Trott. All rights reserved.
perl v5.14.2 2012-01-21 Digest::BubbleBabble(3pm)