Changeset 502 for trunk/lib/Utilities.inc.php
- Timestamp:
- Dec 30, 2014 10:24:51 PM (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/lib/Utilities.inc.php
r500 r502 941 941 /** 942 942 * Signs a value using md5 and a simple text key. In order for this 943 * function to be useful (i.e. secure) the keymust be kept secret, which943 * function to be useful (i.e. secure) the salt must be kept secret, which 944 944 * means keeping it as safe as database credentials. Putting it into an 945 945 * environment variable set in httpd.conf is a good place. 946 *947 * TODO: consider using more bits-per-character, such as done with:948 * http://www.php.net/manual/en/function.sha1.php#86239949 * http://blog.kevburnsjr.com/php-unique-hash950 946 * 951 947 * @access public … … 999 995 * @param string $signed_val A value with appended signature. 1000 996 * @param string $salt (Optional) A text key to use for computing the signature. 997 * @param string $length (Optional) The length of the added signature. 1001 998 * @return bool True if the signature matches the var. 1002 999 */
Note: See TracChangeset
for help on using the changeset viewer.