Jump to content

Recommended Posts

yeah thats what made me have doubts but i've done a bit of checking around. it seems though (unless i'm being stoooopid and not reading things properly) that the second param of md5 is only available in PHP5, not 4 (which most of the php world are still on)
Link to comment
https://forums.phpfreaks.com/topic/29558-md5-encryption/page/2/#findComment-137162
Share on other sites

There isn't really much to research. The top two comments in the manual already noted this.

Appearantly md5() does a poor job of converting the binary digest to hexidemal, performance wise.

Anyone care to try if this goes for hash() too? I'm lazy right now.. It's past midnight over here..

bin2hex(hash('SHA256',true))
Link to comment
https://forums.phpfreaks.com/topic/29558-md5-encryption/page/2/#findComment-137167
Share on other sites

it only took me a second to add the hash, so I did it. For some reason I do not see the same results. - I ran it about 10 times - 2 times it was 3 times faster. The rest is was basically a dead heat.

Not that these .0001 seconds make a difference, but .0001 here in there in a very long script can add up I guess - especially with lots of traffic.
Link to comment
https://forums.phpfreaks.com/topic/29558-md5-encryption/page/2/#findComment-137175
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.