ȸ¿ø°¡ÀԡžÆÀ̵ð/ºñ¹øã±â
ȨÀ¸·Î


MD5¸¦ ÀÌ¿ëÇÑ ¾Ïȣȭ - º¹È£È­
12³â Àü
<?php

  function bytexor($a,$b,$l)
  {
   $c="";
   for($i=0;$i<$l;$i++) {
     $c.=$a{$i}^$b{$i};
   }
   return($c);
  }

  function binmd5($val)
  {
   return(pack("H*",md5($val)));
  }

  function decrypt_md5($msg,$heslo)
  {
   $key=$heslo;$sifra="";
   $key1=binmd5($key);
   while($msg) {
     $m=substr($msg,0,16);
     $msg=substr($msg,16);
     $sifra.=$m=bytexor($m,$key1,16);
     $key1=binmd5($key.$key1.$m);
   }
   echo "\n";
   return($sifra);
  }

  function crypt_md5($msg,$heslo)
  {
   $key=$heslo;$sifra="";
   $key1=binmd5($key);
   while($msg) {
     $m=substr($msg,0,16);
     $msg=substr($msg,16);
     $sifra.=bytexor($m,$key1,16);
     $key1=binmd5($key.$key1.$m);
   }
   echo "\n";
   return($sifra);
  }

// Example of usage...

$message = "This is a very long message, but it is very secret and important
and we need to keep the contents hidden from nasty people who might want to steal it.";

$key = "secret key";

$crypted = crypt_md5($message, $key);
echo "Encoded = $crypted<BR>"; // returns

$uncrypted = decrypt_md5($crypted, $key);
echo "Unencoded = $uncrypted"; // returns This is a very long message (etc)

?>
ÃßõÃßõ : 544 Ãßõ ¸ñ·Ï
¹øÈ£ Á¦¸ñ
193
³×Æ®¿öÅ© ¿ë¾îµé
192
¿©·¯ Å×À̺íÀÇ ÃÖ±Ù °Ô½Ã¹° ÃßÃâ (union all »ç¿ë)
191
°°Àº ·¹ÄÚµåÁß¿¡ ÃÖ°í°ª ±¸Çϱâ
190
¿Ã¹Ù¸¥ ¼øÀ§ Á¤·Ä °á°ú¸¦ ¾ò´Â ¹æ¹ý
189
[MySQL] Áߺ¹µÈ ÇʵåÀÇ °¹¼ö ±¸Çϱâ
188
À¯´ÏÄÚµå ÀÎÄÚµùÇϱâ
187
jquery cookie
186
´Ù¸¥ ¼­¹ö·Î °ªÀ» Àü¼ÛÈÄ °á°ú°ªÀ» ¹Þ´Â ¹æ¹ý
185
DB¿¡¼­ DATA ¸¦ ºÒ·¯¿À´Â ¹æ¹ý
184
find ¸í·ÉÀ¸·Î ÃÖ±Ù º¯°æµÈ ÆÄÀÏ °Ë»ö / ÆÄÀÏ ³»¿ë °Ë»ö
183
¾ÆÀÌÆù, ¾Èµå·ÎÀÌµå ¹ÙÅÁÈ­¸é¿¡ ¹Ù·Î°¡±â ¸¸µé±â
182
À¥È£½ºÆà ÀÌ¿ëÀÚ°¡ ¾÷·Îµå ¿ë·® ´Ã¸®±â
181
PHP·Î HTTP ÀÎÁõÇϱâ
180
phpinfo Á¤º¸ - ¹Ì¸® Á¤ÀÇµÈ º¯¼ö
179
¼¼¼ÇÀ» ÀÌ¿ëÇÑ µ¿½Ã ·Î±×ÀÎ ¹æÁö
178
µð·ºÅ丮³»ÀÇ ¸ðµç ÆÄÀÏ ¹× Æú´õ »èÁ¦ ÇÔ¼ö (Recursive call)
177
Flex¿Í MySQLÀÇ ¿¬µ¿ (PHP»ç¿ë)
176
flex + php + mysql
175
»çÀÌÆ® ȯ°æ¼³Á¤ÀÇ ¹æ¹ý
174
$_SERVER[DOCUMENT_ROOT]ÀÇ Ç¥Çö¹æ¹ý
173
$PHP_SELF °¡ ¾ÈµÉ¶§
172
PHP·Î ±¸ÇöÇÑ °Ô½ÃÆÇ ÀÚµ¿ µî·Ï±â Ŭ·¡½º
MD5¸¦ ÀÌ¿ëÇÑ ¾Ïȣȭ/º¹È£È­
170
linux command ¸®´ª½º È°¿ë ¸í·Éµé..
169
º¸¾ÈÀ» À§ÇÑ php ÇÔ¼ö Á¦ÇÑ
168
mysql¿¡¼­ ÇѱÛÀÌ ±úÁú¶§ Áï ¹®ÀÚ¼ÂÀÌ ¸ÂÁö ¾ÊÀ»¶§
167
Mysql ³¯Â¥/½Ã°£ °ü·Ã ÇÔ¼ö
166
PHP È®ÀåÀÚ ¼û±â±â
165
PHP ¿¡·¯ Ãâ·Â ¾ÈÇϱâ
164
phpinfo() ¸¦ ¼û°Ü¶ó...
¸ñ·Ï
¹ÂÁ÷Æ®·ÎÆ® ºÎ»ê±¤¿ª½Ã ºÎ»êÁø±¸ °¡¾ßµ¿ ¤Ó °³ÀÎÁ¤º¸Ãë±Þ¹æħ
Copyright ¨Ï musictrot All rights reserved.