You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by "Thomas Hoffmann (Speed4Trade GmbH)" <Th...@speed4trade.com> on 2016/10/21 07:22:10 UTC

Using digest.bat or digest.sh with Tomcat version 8 gives strange results

Hello,

I am using Apache Tomcat/8.0.32 and the tool digest.sh and digest.bat returns maybe wrong results.

When i test under Ubuntu Xenial i get the following results:
./digest.sh -a sha foo
foo:d4b2c2a918630e63e2796a92c6269417f992ba4038811ca1711e72af772619ad$1$aa6235fbec4962c26e9ccb0efcb5aebf2af49b86

./digest.sh -a md5 foo
foo:4e5b42806cc055bc4b4378521f86419ce882386b15068d079e387bff8299adc2$1$adc491e6773ceb0a0463b09f322d9be3

With Tomcat 6.0.35 i get correct results:
./digest.sh -a sha foo
foo:0beec7b5ea3f0fdbc95d0dd47f3c5bc275da8a33

./digest.sh -a MD5 foo
foo:acbd18db4cc2f85cedef654fccc4a4d8

Did some parameters change or how do I get an md5 or sha1 hash with digest-script?
Is the script working correctly?

Thanks for your support,
Tom

Re: Using digest.bat or digest.sh with Tomcat version 8 gives strange results

Posted by Mark Thomas <ma...@apache.org>.
On 21/10/2016 08:22, Thomas Hoffmann (Speed4Trade GmbH) wrote:
> Hello,
> 
> I am using Apache Tomcat/8.0.32 and the tool digest.sh and digest.bat returns maybe wrong results.

Nope.

> When i test under Ubuntu Xenial i get the following results:
> ./digest.sh -a sha foo
> foo:d4b2c2a918630e63e2796a92c6269417f992ba4038811ca1711e72af772619ad$1$aa6235fbec4962c26e9ccb0efcb5aebf2af49b86
> 
> ./digest.sh -a md5 foo
> foo:4e5b42806cc055bc4b4378521f86419ce882386b15068d079e387bff8299adc2$1$adc491e6773ceb0a0463b09f322d9be3

As expected.

> With Tomcat 6.0.35 i get correct results:
> ./digest.sh -a sha foo
> foo:0beec7b5ea3f0fdbc95d0dd47f3c5bc275da8a33
> 
> ./digest.sh -a MD5 foo
> foo:acbd18db4cc2f85cedef654fccc4a4d8

Also as expected.

> Did some parameters change or how do I get an md5 or sha1 hash with digest-script?

http://tomcat.apache.org/migration-8.html#Realms

> Is the script working correctly?

Yes.

Mark

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org