md1.update(md5SaltPrefix.getBytes());
// The last part is the salt string. This must be at most 8
// characters and it ends at the first `$' character (for
// compatibility which existing solutions).
md1.update(salt.getBytes(), 0, saltLen);
/* Compute alternate MD5 sum with input KEY, SALT, and KEY. The
final result will be added to the first context. */
MessageDigest md2 = MessageDigest.getInstance("MD5");