svn: /web/php-bugs/trunk/include/ functions.php
| From: | Felipe Pena | Date: | Fri, 01 Jul 2011 02:19:14 +0000 |
| Subject: | svn: /web/php-bugs/trunk/include/ functions.php | ||
| Groups: | php.webmaster | ||
| Request: | Send a blank email to php-webmaster+get-11412@lists.php.net to get a copy of this message | ||
felipe Fri, 01 Jul 2011 02:19:14 +0000
Revision: http://svn.php.net/viewvc?view=revision&revision=312747
Log:
- Added hash function
Changed paths:
U web/php-bugs/trunk/include/functions.php
Modified: web/php-bugs/trunk/include/functions.php
===================================================================
--- web/php-bugs/trunk/include/functions.php 2011-07-01 02:16:18 UTC (rev 312746)
+++ web/php-bugs/trunk/include/functions.php 2011-07-01 02:19:14 UTC (rev 312747)
@@ -1774,3 +1774,8 @@
{
return substr(md5(uniqid(time(), true)), 0, $length);
}
+
+function bugs_get_hash($passwd)
+{
+ return hash_hmac('sha256', $passwd, getenv('USER_PWD_SALT'));
+}