Fast MD5 Implementation in Java

A free, open source and fast implementation of the MD5 algorithm written in Java
Download

Fast MD5 Implementation in Java Ranking & Summary

Advertisement

  • Rating:
  • License:
  • GPL
  • Price:
  • FREE
  • Publisher Name:
  • Tim Macinta
  • Publisher web site:
  • http://www.twmacinta.com
  • Operating Systems:
  • Mac OS X
  • File Size:
  • 78 KB

Fast MD5 Implementation in Java Tags


Fast MD5 Implementation in Java Description

A free, open source and fast implementation of the MD5 algorithm written in Java You don not need to use this Fast MD5 Implementation to get an MD5 hash in Java (though you are certainly welcome to) because the standard edition of Java will come with the MD5 support built in. You might want to use this Fast MD5 Implementation if one or more of the following applies:· Java's built-in MD5 support is a bottleneck for your program's performance and you want something faster.· You are using a version of Java which doesn't have MD5 support, such as J2ME MIDP/CLDC.· You want the extra convenience methods for hashing a file, hashing a string, converting the hash to a hex string, etc. Here are some key features of "Fast MD5 Implementation in Java": · MD5.java - The optimized implementation of the MD5 hashing algorithm. Please see the documentation for this file for instructions on where in your path to place the native library and instructions for how to disable the search for the native library if you are running the code from within an applet or within any other context with a restrictive SecurityManager. · MD5.c - The code for the optional native method that can be used to speed up the implementation even further. Compilation instructions for Linux, Mac OS X, and Windows can be found within the comments to the code at the beginning of the file. · MD5InputStream.java - Calculates the MD5 hash of data read through a specified InputStream. Also contains some test code for computing the MD5 hash of a file (see the main() method). · MD5OutputStream.java - Calculates the MD5 hash of data written to a specified OutputStream. Also contains some test code for computing the MD5 hash of a file (see the main() method). · MD5OutputStreamTest.java (in the "test" package) - Tests the MD5OutputStream class and the correctness of the results by feeding it a very large amount of random data and comparing the results to feeding the same data through the native "md5sum" binary (this requires an "md5sum" binary to be in your path). What's New in This Release: · Fixed stack overflow bug which occurred in native method when called with a large buffer. All users which update the hash's state using large buffers are encouraged to upgrade in order to guard against crashes and potential security implications. · Added native method support for OS X on x86 hardware.


Fast MD5 Implementation in Java Related Software