<?php
/*
Plugin Name: Exclude Password Posts
Plugin URI: http://wordpress.org/support/topic/49740
Description: Removes password-protected posts from the home (main) page.
Author: Kaf Oseo
Version: R1
Author URI: http://szub.net

    Copyright (c) 2006 Kaf Oseo (http://szub.net)
    Exclude Password Posts is released under the GNU General Public
    License (GPL) http://www.gnu.org/licenses/gpl.txt

    This is a WordPress 2 plugin (http://wordpress.org).
*/

function szub_exclude_pw_where($where) {
    global 
$wp_query$wp_version$wpdb;

    if( 
is_home() ) {
        
$where .= " AND post_password = '' ";
    }

    return 
$where;
}

add_filter('posts_where''szub_exclude_pw_where');
?>