md5 newbie question
Marty Landman
MLandman at face2interface.com
Sat Dec 6 13:52:51 PST 2003
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
More information about the freebsd-questions
mailing list