biokr78 Posted July 18, 2008 Share Posted July 18, 2008 I am looking at the code: $passwd="newton"; $strMD5=md5($passwd); $arrMD5Chars = str_split($strMD5, 1); foreach ($arrMD5Chars as $value) { $intTotal += '0x0'.$value; } and trying to figure out what the "$intTotal += '0x0'.$value" part does. Any suggestions? Link to comment https://forums.phpfreaks.com/topic/115368-encryption-question/ Share on other sites More sharing options...
samshel Posted July 18, 2008 Share Posted July 18, 2008 It is inserting '0x0' between each character for the encrypted password.. example: if encrypted password : Xakf12dszO $intTotal = X0x0a0x0k0x0f0x010x020x0d0x0s0x0z0x0O dont understand why it is done so though..may be a checksum or something like that not sure. Link to comment https://forums.phpfreaks.com/topic/115368-encryption-question/#findComment-593124 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.