Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 06 Dec 2003 16:52:42 -0500
From:      Marty Landman <MLandman@face2interface.com>
To:        Chris Pressey <cpressey@catseye.mine.nu>
Cc:        FreeBSD-Questions@freebsd.org
Subject:   Re: md5 newbie question
Message-ID:  <6.0.0.22.0.20031206164811.042faeb0@pop.face2interface.com>
In-Reply-To: <20031206114843.6a37709e.cpressey@catseye.mine.nu>
References:  <6.0.0.22.0.20031206095611.01f550a0@pop.face2interface.com> <20031206114843.6a37709e.cpressey@catseye.mine.nu>

next in thread | previous in thread | raw e-mail | index | archive | help
At 02:48 PM 12/6/2003, Chris Pressey wrote:

>The "-s 466c63bb71b710d20a5c353df8c1a19c" part of your command is
>requesting an md5 hash of the literal string of characters
>"466c63bb71b710d20a5c353df8c1a19c".
>
>That's almost certainly not what you want, and will only serve to confuse.

Ah, but you've now unconfused me.

>   Try running just this instead:
>
>   md5 /tmp/httpd-2.0.48.tar.gz

What I want to do is avoid having to verify a match by eye. Here's what I 
just tried:

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
FreeB md5 httpd-2.0.48.tar.gz > thing1 ; echo 
466c63bb71b710d20a5c353df8c1a19c > thing2 ; echo difference is `diff thing1 
thing2` ; rm thing1 thing2
difference is 1c1 < MD5 (httpd-2.0.48.tar.gz) = 
466c63bb71b710d20a5c353df8c1a19c --- > 466c63bb71b710d20a5c353df8c1a19c
FreeB md5 httpd-2.0.48.tar.gz > thing1 ; echo 
466c63bb71b710d20a5c353df8c1a19c > thing2
FreeB more thing1

MD5 (httpd-2.0.48.tar.gz) = 466c63bb71b710d20a5c353df8c1a19c
FreeB
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

Seems the problem here is that the md5 cmd's output is not simply the 
result string but a description of the cmd together with the result. If I 
need to do much of this guess a little pgm's called for.


Marty Landman   Face 2 Interface Inc 845-679-9387
Sign On Required: Web membership software for your site
Make a Website: http://face2interface.com/Home/Demo.shtml



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?6.0.0.22.0.20031206164811.042faeb0>