The correct way to enter the password is by using wp_hash_password() function. This will ensure that the password entered in the database is actually the hash of the password which you want and that is what the wordpress login system actually expects.