Blowfish for Java

Version 1.5


 



What's this?

This is my own implementation of the Blowfish encryption algorithm in ECB and CBC mode. It's a simple to use class and runs at an excellent speed, around 130 kB/sec on a JIT-less virtual machine on a Cyrix P200+ at 150 MHz. Using the just-in-time compiler from the current JDK 1.1.7 the rate is around 2 MB/sec on the same hardware! To my knowledge this is the fastest Blowfish implementation in Java currently.
 

Files in this package

BlowfishTest.class      - the test (and benchmark) application
BlowfishPak.jar         - contains all Blowfish and the support classes
BlowfishDemoApplet.html - Blowfish demo page
doc\*                   - class documentation produced with JAVADOC
src\*                   - all sources
README.html             - this document
 

How to use this software?

If you have a VM already installed just type

java -classpath %classpath%;BlowfishPak.jar BlowfishTest

(That's the way how to do it under Win32, for other platforms the command line might look slightly different.)
This will execute a selftest, an encryption demonstration and a benchmark for testing the speed.

Or launch your browser and load the HTML document BlowfishDemo.html, which shows the capabilities of the class BlowfishEasy.

If you want to use the Blowfish classes in your own projects just copy the BlowfishPak.jar files to your project path
and declare it in the current classpath. The Blowfish classes aren't packaged yet.

There were problems with the JIT compilers in the JDK 1.1.6.
 
 

Copyright and Warranty

This software (version 1.5) is freeware, which means that you can use it in your own applets and applications without
any necessary license fees. The only conditions are that you're not allowed to change the files in this package without the permisson of the author (Markus Hahn) and that you must mention the author's name in the documentation (e.g. Uses the Blowfish Java implementation by Markus Hahn <hahn@flix.de>).

There's no warranty on this software. It has been well tested, encrypts and decrypts the official test vectors flawlessly.
 

Download

You will find the latest releases at Markus Hahn's Software Page.

Questions? Suggestions? Bug reports? Feel free to send a mail to me.

Visit also the origin of Blowfish at Counterpane.

The software was developed with the original JDK 1.1.7.
 
 

Released on 12 Nov 1998

[end of document]