How to create the password hashstring

If you have to create a new password for your admin user in a Drupal 7 database you can't use md5() as before, you have to implement a little script that print it out.

//add in index.php after drupal_bootstrap(DRUPAL_BOOTSTRAP_FULL);
<?php
require_once 'includes/password.inc';
echo
user_hash_password('mypassword');
exit;
?>
Knowledge keywords: