diff options
author | Dries Buytaert <dries@buytaert.net> | 2010-05-01 08:12:23 +0000 |
---|---|---|
committer | Dries Buytaert <dries@buytaert.net> | 2010-05-01 08:12:23 +0000 |
commit | 71713081a2b79b0baa024742cdbb4af536f77f4b (patch) | |
tree | e9bc0d309856beb05a6fae67fdbdd75c59ccef9f /scripts | |
parent | 2a2f4cc0be547f515ccd4212e9aeca7765a4968b (diff) | |
download | brdo-71713081a2b79b0baa024742cdbb4af536f77f4b.tar.gz brdo-71713081a2b79b0baa024742cdbb4af536f77f4b.tar.bz2 |
- Patch #723802 by pwolanin, grendzy: convert to sha-256 and hmac from md5 and sha1.
Diffstat (limited to 'scripts')
-rwxr-xr-x | scripts/password-hash.sh | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/scripts/password-hash.sh b/scripts/password-hash.sh index 12e939983..c5e26c182 100755 --- a/scripts/password-hash.sh +++ b/scripts/password-hash.sh @@ -13,10 +13,6 @@ * Plain-text passwords in quotes (or with spaces backslash escaped). */ -function variable_get($x, $default) { - return $default; -} - if (version_compare(PHP_VERSION, "5.2.0", "<")) { $version = PHP_VERSION; echo <<<EOF @@ -86,7 +82,7 @@ while ($param = array_shift($_SERVER['argv'])) { define('DRUPAL_ROOT', getcwd()); include_once DRUPAL_ROOT . '/includes/password.inc'; -include_once DRUPAL_ROOT . '/includes/common.inc'; +include_once DRUPAL_ROOT . '/includes/bootstrap.inc'; foreach ($passwords as $password) { print("\npassword: $password \t\thash: ". user_hash_password($password) ."\n"); |