_openid_sha1
modules/openid/openid.inc, строка 254
- Версии
- 6
_openid_sha1($text)
Код
<?php
function _openid_sha1($text) {
$hex = sha1($text);
$raw = '';
for ($i = 0; $i < 40; $i += 2) {
$hexcode = substr($hex, $i, 2);
$charcode = (int)base_convert($hexcode, 16, 10);
$raw .= chr($charcode);
}
return $raw;
}
?>
Войдите или зарегистрируйтесь, чтобы получить возможность отправлять комментарии