标签:
Drupal版本 7.40
根目录index.php添加
require_once ‘includes/password.inc‘; require_once ‘includes/bootstrap.inc‘; echo user_hash_password(‘123456‘);
这样就能在页面中显示123456加密后的密码。
推荐方法
windows下打开命令行
定位到drupal根目录
执行
php script/password-hash.sh 密码1 密码2...
这样就能获取加密后的密码
标签:
原文地址:http://www.cnblogs.com/mafeifan/p/4909631.html