note 74185 added to function.md5

From: Date: Thu, 29 Mar 2007 05:39:59 +0000
Subject: note 74185 added to function.md5
Groups: php.notes 
Request: Send a blank email to php-notes+get-124905@lists.php.net to get a copy of this message
PHP's md5() function returns the exact same hash value as MySQL's MD5() function and other than stated before as the md5sum command line tool on most Linux/UNIX systems. Note that trailing line feeds do matter, when you apply md5sum on a text file: shell> php -r 'echo md5("test");' --> 098f6bcd4621d373cade4e832627b4f6 mysql> select md5('test'); --> 098f6bcd4621d373cade4e832627b4f6 shell> echo -n test | md5sum --> 098f6bcd4621d373cade4e832627b4f6 In the third example, note the '-n' option, which prevents echo from appending a line feed. ---- Server IP: 217.160.72.57 Probable Submitter: 84.130.154.44 ---- Manual Page -- http://www.php.net/manual/en/function.md5.php Edit -- https://master.php.net/note/edit/74185 Del: integrated -- https://master.php.net/note/delete/74185/integrated Del: useless -- https://master.php.net/note/delete/74185/useless Del: bad code -- https://master.php.net/note/delete/74185/bad+code Del: spam -- https://master.php.net/note/delete/74185/spam Del: non-english -- https://master.php.net/note/delete/74185/non-english Del: in docs -- https://master.php.net/note/delete/74185/in+docs Del: other reasons-- https://master.php.net/note/delete/74185 Reject -- https://master.php.net/note/reject/74185 Search -- https://master.php.net/manage/user-notes.php

« previous php.notes (#124905) next »