note 71177 deleted from function.md5 by danbrown
| From: | danbrown@php.net | Date: | Mon, 18 Jul 2011 13:58:31 +0000 |
| Subject: | note 71177 deleted from function.md5 by danbrown | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-181643@lists.php.net to get a copy of this message | ||
Note Submitter: nicholas at nicholaswilliams dot info
----
Agreed, tszming at gmail dot com. I did my own test using simple (letters) and complex (letters,
numbers, symbols) strings of short, (6 characters), medium (a sentence), and long (three paragraphs)
lengths. Overall, using
<?php
echo bin2hex( md5( $str, TRUE ) );
?>
versus just
<?php
echo md5( $str );
?>
ranges between 2x and 3x faster and yet return identical results. Good catch.