The following classes are copied from Apache Commons Codec: The classes are slightly modified to minimize imports. Used apache commons codec version: 1.4