public static boolean isApacheMD5( String str ) 
	throws NullPointerException {

	// Format (example):
	// $apr1$Px0gsAPk$JW2APdbEhGlT5bLfqua2C1

	String[] split = str.split( "(\\$)" );
	

	if( split.length != 4 )
	    return false;

	if( split[0].length() != 0 )
	    return false;

	if( !split[1].equals("apr1") )
	    return false;

	if( split[2].length() != 8 )
	    return false;

	if( split[3].length() != 32 )
	    return false;

	return true;
    }