static String makeScrambledPassword(String password) throws NoSuchAlgorithmException {
  long[] passwordHash=Util.hashPre41Password(password);
  StringBuilder scramble=new StringBuilder();
  scramble.append(longToHex(passwordHash[0]));
  scramble.append(longToHex(passwordHash[1]));
  return scramble.toString();
}

static String makeScrambledPassword ( String password ) throws NoSuchAlgorithmException { long [ ] passwordHash = Util . hashPre41Password ( password ) ; StringBuilder scramble = new StringBuilder ( ) ; scramble . append ( longToHex ( passwordHash [ 0 ] ) ) ; scramble . append ( longToHex ( passwordHash [ 1 ] ) ) ; return scramble . toString ( ) ; }
creates password to be stored in user database from raw string . handles pre - mysql 4 . 1 passwords .
