private static boolean isEncrypted(String password){
  for (int i=0; i < ALGORITHMS.length; i++) {
    if (password.startsWith(ALGORITHMS[i] + SEPERATOR)) {
      return true;
    }
  }
  return false;
}

private static boolean isEncrypted ( String password ) { for ( int i = 0 ; i < ALGORITHMS . length ; i ++ ) { if ( password . startsWith ( ALGORITHMS [ i ] + SEPERATOR ) ) { return true ; } } return false ; }
returns true if password is encrypted ( i . e . starts with a known algorithm prefix )
