note 102806 deleted from function.md5 by danbrown

[email protected]
Newsgroups php.notes
Message-ID <[email protected]>
Note Submitter: mimic 

----

<?php

/*
 * Absolutely safe MD5.
 * Uses all the characters (small and large letters,
 * numbers and symbols).
 *
 * powered by mimic | am0k.cz
 */

function umd5($in)
{
  $db = '';
  $field = preg_split('//', $in);
  foreach ($field as $key => $row)
  {
    if (!$key || $key > strlen($in)) continue;
    if ($key == 1) $db.= '[Beg1n]-> {';
    $db.= 'i:'.floor(ord($row) * pi());
    if ($key == strlen($in)) $db.= '} <- [End]';
  }
  return md5($db);
}

echo 'Ultra: '.umd5('password');
echo '<br>';
echo 'Normal: '.md5('password');

?>
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.