On Mon, Aug 29, 2005 at 11:00:33PM -0500, Roberto Arias Alegria wrote:

> Thanks people,
> 
> Yeah I think the end of line was the key. After reading your posts I
> realised that I needed this:
> echo "mytext" | openssl dgst -md5
> 
> Anyway, I don't know why I got different hashes:
> 
> Using openssl:
>  echo "1122" | openssl dgst -md5
>  01ebeaafc334e503f4acc94a18df9fa5
> 
> and using MySQL:
>  SELECT md5("1122");
>  3b712de48137572f3849aabd5666a4e3
> 

    $ echo '' | wc
    $ printf '' | wc

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

Reply via email to