Changeset 394 for trunk/lib/Utilities.inc.php
- Timestamp:
- Dec 2, 2011 2:39:15 AM (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/lib/Utilities.inc.php
r380 r394 828 828 $salt = $app->getParam('signing_key'); 829 829 } 830 830 831 // TODO: consider using more bits-per-character, such as done with: 832 // http://www.php.net/manual/en/function.sha1.php#86239 833 // http://blog.kevburnsjr.com/php-unique-hash 831 834 return $val . '-' . mb_strtolower(mb_substr(md5($salt . md5($val . $salt)), 0, $length)); 832 835 }
Note: See TracChangeset
for help on using the changeset viewer.