The actual MD5 hash is 128 bits ... the hexadecimal representation
of those bits is 32 bytes, the base64 representation is 22 bytes, and
of course, the binary representation will be 16 bytes. That is set (look at the
rfc). If you need more bits, you'll need to use
a different hashing algorithm (like
SHA-1).
-derby