Hey,

> When executed in a user account, or on one of the SHA1 generating web
> pages on the net, it returns:
>
> 8cb2237d0679ca88db6464eac60da96345513964
>
> When executed from the root account it returns:
>
> 10298ad22a68325ec5b2a69f209cac87135a5884

root shell's built-in echo doesn't support "-n" parameter:

$ echo -n "12345" | openssl dgst -sha1 -hex
(stdin)= 8cb2237d0679ca88db6464eac60da96345513964
$ echo "-n 12345" | openssl dgst -sha1 -hex
(stdin)= 10298ad22a68325ec5b2a69f209cac87135a5884

Best regards,
Piotr Sikora
______________________________________________________________________
OpenSSL Project                                 http://www.openssl.org
Development Mailing List                       [email protected]
Automated List Manager                           [email protected]

Reply via email to