On Sun, 14 Jul 2002, hongbin tang wrote:

> Hi, All;
>   Why the result of messages digest using md5 differs
> from using openssl md5?
>
> for example.
>  # md5 -q -s "hello"
>    5d41402abc4b2a76b9719d911017c592
>  but when I used openssl.
>
> #echo "hello" | openssl md5
>    f447b20a7fcbf53a5d5be013ea0b15af
> why are they different? I used openssl 0.9.6d on
> FreeBsd4.2 UNIX.


echo puts a newline character at the end of the string. Try this:

        echo -n "hello" | openssl md5



______________________________________________________________________
OpenSSL Project                                 http://www.openssl.org
User Support Mailing List                    [EMAIL PROTECTED]
Automated List Manager                           [EMAIL PROTECTED]

Reply via email to