tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Christopher Schultz <ch...@christopherschultz.net>
Subject Re: Tomcat digest SHA
Date Tue, 06 Nov 2012 15:02:06 GMT
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Bob,

On 11/6/12 8:23 AM, sigzero wrote:
> What level of SHA does the Tomcat digest script use?

$ bin/digest.sh
Usage: RealmBase -a <algorithm> [-e <encoding>] <credentials>

Whatever one you type on the command-line. It all comes down to the
JVM's support plus any extensions you've added (BouncyCastle, etc.) to
support other message digest algorithms.

$ bin/digest.sh  -a MD2 foo
foo:d11f8ce29210b4b50c5e67533b699d02

$ /usr/local/apache-tomcat-7.0.32/bin/digest.sh  -a MD5 foo
foo:acbd18db4cc2f85cedef654fccc4a4d8

$ bin/digest.sh  -a SHA-1 foo
foo:0beec7b5ea3f0fdbc95d0dd47f3c5bc275da8a33

$ bin/digest.sh  -a SHA-2 foo
foo:Nov 6, 2012 9:58:30 AM org.apache.catalina.realm.RealmBase Digest
SEVERE: java.security.NoSuchAlgorithmException: SHA-2 MessageDigest
not available
foo

$ bin/digest.sh  -a SHA-256 foo
foo:2c26b46b68ffc68ff99b453c1d30413413422d706483bfa0f98a5e886266e7ae

My JVM also supports SHA-384 and SHA-512.

- -chris
-----BEGIN PGP SIGNATURE-----
Version: GnuPG/MacGPG2 v2.0.17 (Darwin)
Comment: GPGTools - http://gpgtools.org
Comment: Using GnuPG with Mozilla - http://www.enigmail.net/

iEYEARECAAYFAlCZJm4ACgkQ9CaO5/Lv0PAopACdH+2zAR/njekMGN/cJuLo89Sv
y1gAn2V1kV9m2Jo2xu6mNXs1I8eufiHm
=XjT4
-----END PGP SIGNATURE-----

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


Mime
View raw message