BlowfishJ - Java Implementation by Markus Hahn

This section describes BlowfishJ - Java implementation of Blowfish by Markus Hahn.

One of the most popular Java implementation of Blowfish cipher is BlowfishJ, developed by Markus Hahn, http://come.to/hahn. Markus used a very efficient form of Blowfish algorithm:

Input: 
   T: 64 bits of clear text
   P1, P2, ..., P18: 18 sub-keys
   F(): Round function
   
Output: 
   C: 64 bits of cipher text

Algorithm:
   (L, R) = T, dividing T into two 32-bit parts
   L = L XOR P1
   R = R XOR F(L) XOR P2
   L = L XOR F(R) XOR P3
   R = R XOR F(L) XOR P4
   L = L XOR F(R) XOR P5
   R = R XOR F(L) XOR P6
   L = L XOR F(R) XOR P7
   R = R XOR F(L) XOR P8
   L = L XOR F(R) XOR P9
   R = R XOR F(L) XOR P10
   L = L XOR F(R) XOR P11
   R = R XOR F(L) XOR P12
   L = L XOR F(R) XOR P13
   R = R XOR F(L) XOR P14
   L = L XOR F(R) XOR P15
   R = R XOR F(L) XOR P16
   L = L XOR F(R) XOR P17
   R = R XOR P18
   C = (R, L)

Table of Contents

 About This Book

 Cryptography Terminology

 Cryptography Basic Concepts

 Introduction to AES (Advanced Encryption Standard)

 Introduction to DES Algorithm

 DES Algorithm - Illustrated with Java Programs

 DES Algorithm Java Implementation

 DES Algorithm - Java Implementation in JDK JCE

 DES Encryption Operation Modes

 DES in Stream Cipher Modes

 PHP Implementation of DES - mcrypt

Blowfish - 8-Byte Block Cipher

 What Is Block Cipher?

 Blowfish Cipher Algorithm

 Key Schedule (Sub-Keys Generation) Algorithm

BlowfishJ - Java Implementation by Markus Hahn

 Blowfish Decryption Algorithm

 First 8336 Hex Digits of PI

 Secret Key Generation and Management

 Cipher - Secret Key Encryption and Decryption

 Introduction of RSA Algorithm

 RSA Implementation using java.math.BigInteger Class

 Introduction of DSA (Digital Signature Algorithm)

 Java Default Implementation of DSA

 Private key and Public Key Pair Generation

 PKCS#8/X.509 Private/Public Encoding Standards

 Cipher - Public Key Encryption and Decryption

 MD5 Mesasge Digest Algorithm

 SHA1 Mesasge Digest Algorithm

 OpenSSL Introduction and Installation

 OpenSSL Generating and Managing RSA Keys

 OpenSSL Managing Certificates

 OpenSSL Generating and Signing CSR

 OpenSSL Validating Certificate Path

 "keytool" and "keystore" from JDK

 "OpenSSL" Signing CSR Generated by "keytool"

 Migrating Keys from "keystore" to "OpenSSL" Key Files

 Certificate X.509 Standard and DER/PEM Formats

 Migrating Keys from "OpenSSL" Key Files to "keystore"

 Using Certificates in IE

 Using Certificates in Google Chrome

 Using Certificates in Firefox

 Archived Tutorials

 References

 Full Version in PDF/EPUB