Package goldengate.common.digest

Classes implementing digests support (MD2, MD5, SHA1, SHA-256/384/512, CRC32, ADLER32)

MD5 can be implemented through Fast MD5 implementation, with or without C library support, but can be reverted to JVM native digest also.

See:
          Description


Class Summary
FilesystemBasedDigest Class implementing digest like MD5, SHA1.
MD5 Fast implementation of RSA's MD5 hash generator in Java JDK Beta-2 or higher.
 

Enum Summary
FilesystemBasedDigest.DigestAlgo All Algo that Digest Class could handle
 

Package goldengate.common.digest Description

Classes implementing digests support (MD2, MD5, SHA1, SHA-256/384/512, CRC32, ADLER32)

MD5 can be implemented through Fast MD5 implementation, with or without C library support, but can be reverted to JVM native digest also.

Recommendation for best performance would be to use C-library FastMD5 if possible for MD5, but for portability to use native JVM digest implementations (so no FastMD5 at all). In order to let you make some choice, here is a short performance reports: (done using java -server option)



For information, sphlib (http://www.saphir2.com/sphlib/) were compared to native JVM implementation for all those digests, and it appears on small benchmarks (speed from sphlib) that native JVM implementation performs better and that on MD5, FastMD5 performs better than sphlib but less than native JVM.



Copyright © 2009-2012 Frederic Bregier. All Rights Reserved.