mordae at thirdcms.org
Sun Sep 17 01:24:04 PDT 2006
> On Saturday 16 September 2006 05:44, Jan Dvořák wrote:
>> Why don't build OpenSSL sooner and make them use it instead?
> OpenSSL's md5 could replace Coreutils' md5sum with a shell script. OpenSSL and
> md5sum have slightly different output however:
OK, seams reasonable. We just add optional coreutils patch, that
replaces md5sum with our script and prevent coreutils' md5sum build.
> $ openssl md5 TODO
> MD5(TODO)= d288fb95096befbea9c5d14b46ea7ddb
> $ md5sum TODO
> d288fb95096befbea9c5d14b46ea7ddb TODO
> $ echo foo |openssl dgst -md5
> $ echo foo | md5sum
> d3b07384d113edec49eaa6238ad5ff00 -
> I don't know why Coreutils adds the trailing "-". Also, openssl doesn't have a
> built in --check option, so the script would have to do it. The script would
> also have to arrange openssl's output to mimic md5sum so .md5sum files are
> usable on other systems.
It adds that slash to signalize standard input was used.
> I'm not much of an sh scripter. I think a shell script would be better than
> patching Coreutils to use libcrypto. OpenSSL also supports a few other digest
OK, I'll write it.
More information about the hlfs-dev