drupal_get_token($value = '')Generate a token based on $value, the current user session and private key.
$value An additional value to base the token on.
includes/common.inc, line 4259
<?php
function drupal_get_token($value = '') {
$private_key = drupal_get_private_key();
// A single md5() is vulnerable to length-extension attacks, so use it twice.
// @todo: add md5 and sha1 hmac functions to core.
return md5(drupal_get_hash_salt() . md5(session_id() . $value . $private_key));
}
?>