bbfj241l

所属分类:Java编程
开发工具:Java
文件大小:64KB
下载次数:5
上传日期:2012-07-18 19:07:27
上 传 者tutor
说明:  blowfish java代代码 算法简单实用。
(blowfish java-generation code algorithm is simple and practical.)

文件列表:
bbfj241l\.classpath (379, 2007-10-25)
bbfj241l\.project (385, 2004-12-05)
bbfj241l\app\BlowfishTool\.classpath (468, 2008-08-03)
bbfj241l\app\BlowfishTool\.project (388, 2008-08-03)
bbfj241l\app\BlowfishTool\bftool.bat (72, 2008-08-03)
bbfj241l\app\BlowfishTool\make.bat (81, 2008-08-03)
bbfj241l\app\BlowfishTool\src\blowfishj\tool\Tool.java (7351, 2008-08-03)
bbfj241l\app\BlowfishTool\test\blowfishj\tool\ToolTest.java (3434, 2008-08-03)
bbfj241l\bfj241.jar (27822, 2008-08-03)
bbfj241l\src\blowfishj\BinConverter.java (10038, 2008-08-03)
bbfj241l\src\blowfishj\Blowfish.java (528, 2008-08-03)
bbfj241l\src\blowfishj\BlowfishCBC.java (13723, 2008-08-03)
bbfj241l\src\blowfishj\BlowfishCFB.java (16179, 2008-08-03)
bbfj241l\src\blowfishj\BlowfishEasy.java (5648, 2008-08-03)
bbfj241l\src\blowfishj\BlowfishECB.java (34336, 2008-08-03)
bbfj241l\src\blowfishj\BlowfishInputStream.java (4943, 2008-08-03)
bbfj241l\src\blowfishj\BlowfishOutputStream.java (4622, 2008-08-03)
bbfj241l\test\blowfishj\AllTests.java (581, 2008-08-03)
bbfj241l\test\blowfishj\BinConverterTest.java (6202, 2008-08-03)
bbfj241l\test\blowfishj\BlowfishTests.java (9815, 2008-08-03)
bbfj241l\test\blowfishj\demo\BlowfishDemo.java (7642, 2008-08-03)
bbfj241l\test\blowfishj\InOutputStreamTest.java (4860, 2008-08-03)
bbfj241l\test\blowfishj\VectorsTest.java (3854, 2008-08-03)
bbfj241l\app\BlowfishTool\src\blowfishj\tool (0, 2008-08-03)
bbfj241l\app\BlowfishTool\test\blowfishj\tool (0, 2008-08-03)
bbfj241l\app\BlowfishTool\src\blowfishj (0, 2008-08-03)
bbfj241l\app\BlowfishTool\test\blowfishj (0, 2008-08-03)
bbfj241l\app\BlowfishTool\src (0, 2008-08-03)
bbfj241l\app\BlowfishTool\test (0, 2008-08-03)
bbfj241l\test\blowfishj\demo (0, 2008-06-27)
bbfj241l\app\BlowfishTool (0, 2008-08-03)
bbfj241l\src\blowfishj (0, 2008-08-03)
bbfj241l\test\blowfishj (0, 2008-06-27)
bbfj241l\app (0, 2008-08-03)
bbfj241l\src (0, 2008-06-27)
bbfj241l\test (0, 2008-06-27)
bbfj241l (0, 2012-03-18)

BlowfishJ v2.41 (08/03/2008) WELCOME TO BLOWFISHJ This is my own implementation of the Blowfish encryption algorithm in ECB, CBC and CFB mode. It's a simple to use package and runs at an excellent speed, around 45 MB/s with the Hotspot Server VM of the JDK 1.6 on an AMD Athlon 3000+. The code actually comes very close to the limits what is possible with Java. The latest JDK it was tested on is 1.6.0, the code should be runnable down to 1.3 actually. Stream and string encryption solutions are compatible to Blowfish.NET (a C# implementation), allowing an easy data exchange between Java and the Microsoft.NET platform. The CFB implementation has also proven to be compatible to the one used in OpenSSL. Thie package inclused the BlowfishTool software, which uses BlowfishJ to offer single file encryption together with compression. The current development environment is Eclipse 3.3.1.1 COPYRIGHT AND WARRANTY This software can be used in its original form (the compiled JAR file) free for non-commercial purposes. The source code is released for review purposes only, it shall not be modified or redistributed without the author's permission. For the usage of BlowfishJ in commercial applications please contact the author to provide you with licensing information. VERSION HISTORY 2.41 - tiny speedup in CFB mode - the paths in the JAR file were wrong, fixed the make batch file - added BlowfishTool as an example of a real world application using BlowfishJ 2.40 - code cleanup: comments, coding style, tabs and javadoc comments - speedup of both the core (last time, I hope) and in the key setup - weak key check is now faster - introduced Blowfish base class for all mode independent things - SHA1 class got replaced by using the standard J2SE MessageDigest("SHA-1") - BlowfishEasy not synchronized on a global SRNG anymore - code compatibility checked now back to Java 1.3 - improved building using the jar tool instead of zip - cleaned up the demo and moved it in its own package, blowfishj.demo 2.30 - speeded up the inner loops on more time - added CFB mode support, compatible to OpenSSL's Blowfish and Blowfish.NET - all source files are free of tabs now - the minimum Java source level is now 1.5 - moved test cases into the parallel package space and into their own folder - BlowfishJ is _not_ under the Apache license anymore, but free for non- commercial purposes, the older versions of course remain under the license agreements used at the time 2.20 - removed the project from the SF server, restructured it for simplification - rearranged the packages to match the new layout - some source code cleanup to fit modern coding standards - removed deprecated methods (yes, this really happens sometimes :) - checked for Java 5.0 (compiles under 1.3/1.4, too) and J2ME compatibility - added MAKE.BAT for an easy creation of a production JAR file under Windows 2.15 - removed unused local variables, which were detected by the JDK 1.5 compiler - streams can now be closed multiple times without causing problems - some copyright/comment and demo code adjustments - verified to compile and run in the new Eclipse 3.1 IDE 2.14 - root package names changed to (test.)net.sourceforge.blowfishj - project is now hosted at Sourceforge, see above - updated to Apache License 2.0 - added Maven build 2.13 - fixed a bug in the key setup of BlowfishECB, if keys were passed with an offset and they were smaller than Blowfish.BLOCKSIZE then the overall 56 byte key used was wrongfully assembled; a test case was added to prove the fix 2.12 - switch to Apache/BSD license (BlowfishJ is now a candidate for Jakarta) - deprecated constructor in BlowfishSimple, introduced a better solution using the full Unicode data (be aware that the constructors are _not_ compatible!) - added known weak key test - added demo code for BlowfishEasy - added compatibility tests for data exchange with Blowfish.NET - removed the C++ sources (this project fell behind its expectations) 2.11 - added comments for each deprecated item - added BUILD.BAT for auto-generation of docs, jar and class files (Win32 only) - some bugs in the Javadoc comments 2.10 - instances (of ECB and CBC) can be reused by invoking initialize() - added a JUnit test suite - renamed BlowfishTest to BlowfishTest) and moved it to the test package - moved InOutputStreamTest to the test package - renamed SHA1Test to SHA1Demo and moved it to the test package - changed the benchmark to CBC/bytes encryption (closer to the real world) - refactored the streams (e.g. deprecated the string consuming ctors) - problem with streams: zero length content generated incompatible output - bug with input stream: IV reading could fail for no reason - renamed some methods in BinConverter (their names simply didn't make sense) - general code cleanup and some minor speedups (yet outside of the hot spots) 2.02 - added Eclipse 2.1 project files - removed deprecated method calls and obsolete imports - reformatted all Java source code (e.g. to fit print margins) - BlowfishJ is now published under the LGPL 2.01 - problem BlowfishCBC, only the first block got decrypted (wrong block swaps) - BinConverter.binHexToBytes was flawed 2.00 - speed optimized the byte array handling methods (since they are the most commonly used), which gained around 50% more performance(!); both ECB and CBC classes now have separated inner loops for maximum speed - all methods with array parameters have now new versions with offset and length parameters (where necessary), solves lots of data copying overhead for the caller - also deprecated all of these old methods with array parameters - extended and cleaned up BinConverter - BlowfishEasy is now using the standard Java SHA-1 implementation - fixed message input in BlowfishTest (length adjustment) 1.86 - added BlowfishJ implementation in C++ - decryption was referencing the box members, not the references on the stack, which lead to a decrease in performance 1.85 (first entry) -- Copyright (c) 1997-2008 Markus Hahn

近期下载者

相关文件


收藏者