code: public static byte[] hashPassword(String password) throws InvalidKeyException, NoSuchAlgorithmException {
  
          PasswordEncryptor encryptor = new PasswordEncryptor();
          return encryptor.generateEncryptedPassword(password, null, PasswordEncryptor.MD4, null, null);
      }
docs: Computes an MD4 hash for the password.
  
  @param password the password for which to compute the hash
  @throws NoSuchAlgorithmException
  @throws InvalidKeyException
  
  @return the password hash