this should do the job, just add it to functions.php
or put in a plugin:
add_filter( 'wp_authenticate_user', 'my_authenticate_user', 10, 2 );
function my_authenticate_user( $user, $password ) {
// do whatever you want with the $password variable here
return $user;
}