note 77361 added to function.mcrypt-ecb
| From: | andry at zionit dot ru | Date: | Sun, 26 Aug 2007 12:52:19 +0000 |
| Subject: | note 77361 added to function.mcrypt-ecb | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-129804@lists.php.net to get a copy of this message | ||
<?php
function decrypt($value)
{
global $LICENSE_KEY;
$key = substr(md5($_SERVER['REMOTE_ADDR']), 0, 6);
if(function_exists("mcrypt_ecb"))
{
return mcrypt_ecb(MCRYPT_3DES, $key, $value, MCRYPT_DECRUPT);
}
else return $value;
}
// РаÑÑÑÑÑовка кÑкиÑов Ñ
иÑполÑзованием клÑÑа
function encrypt($value)
{
global $LICENSE_KEY;
$key = substr(md5($_SERVER['REMOTE_ADDR']), 0, 6);
if(function_exists("mcrypt_ecb"))
{
return mcrypt_ecb(MCRYPT_3DES, $key, $value, MCRYPT_ENCRYPT);
}
else return $value;
}
?>
----
Server IP: 69.147.83.197
Probable Submitter: 91.124.106.159
----
Manual Page -- http://www.php.net/manual/en/function.mcrypt-ecb.php
Edit -- https://master.php.net/note/edit/77361
Del: integrated -- https://master.php.net/note/delete/77361/integrated
Del: useless -- https://master.php.net/note/delete/77361/useless
Del: bad code -- https://master.php.net/note/delete/77361/bad+code
Del: spam -- https://master.php.net/note/delete/77361/spam
Del: non-english -- https://master.php.net/note/delete/77361/non-english
Del: in docs -- https://master.php.net/note/delete/77361/in+docs
Del: other reasons-- https://master.php.net/note/delete/77361
Reject -- https://master.php.net/note/reject/77361
Search -- https://master.php.net/manage/user-notes.php