Jump to content

md5 encryption


Jay2391

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

Archived

This topic is now archived and is closed to further replies.

×
×
  • 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.