For Programmers: Free Programming Magazines  


Home > Archive > PHP Documentation > April 2006 > #37063 [Opn->Bgs]: Is md5 binary-safe?









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author #37063 [Opn->Bgs]: Is md5 binary-safe?
bjori@php.net

2006-04-25, 7:01 pm

ID: 37063
Updated by: bjori@php.net
Reported By: ceo at l-i-e dot com
-Status: Open
+Status: Bogus
Bug Type: Documentation problem
Operating System: Irrelevant
PHP Version: Irrelevant
New Comment:

Its kinda given that it is...


Previous Comments:
------------------------------------------------------------------------

[2006-04-13 01:00:12] ceo at l-i-e dot com

Description:
------------
Is md5 binary-safe?

I would think it would be, but it doesn't say it is...


Reproduce code:
---------------
$jpeg = file_get_contents('test.jpg');
$md5 = md5($jpeg);
//store $md5 in database to detect changes to test.jpg later




------------------------------------------------------------------------


--
Edit this bug report at http://bugs.php.net/?id=37063&edit=1
Sponsored Links







Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive

Copyright 2008 codecomments.com