<div dir="ltr">md5 shouldn't give different results regardless of implementation - my guess is that your different platforms are using different character encodings (iso8859 vs utf8 for instance) and that is the source of your differences. To verify your md5 implementation there are test vectors here <a href="https://www.cs.bris.ac.uk/Research/CryptographySecurity/MPC/md5-test.txt">https://www.cs.bris.ac.uk/Research/CryptographySecurity/MPC/md5-test.txt</a>, here <a href="http://www.febooti.com/products/filetweak/members/hash-and-crc/test-vectors/">http://www.febooti.com/products/filetweak/members/hash-and-crc/test-vectors/</a>, and at the end if the article here <a href="https://en.wikipedia.org/wiki/MD5">https://en.wikipedia.org/wiki/MD5</a> that you can use to verify your implementations produce same output for same input - just make sure the input is really the same! I hope this helps a bit.</div><div class="gmail_extra"><br><div class="gmail_quote">On Wed, Aug 10, 2016 at 3:07 AM, shahzaib mushtaq <span dir="ltr"><<a href="mailto:shahzaib.cb@gmail.com" target="_blank">shahzaib.cb@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">Hi,<input name="virtru-metadata" type="hidden" value="{"email-policy":{"state":"closed","expirationUnit":"days","disableCopyPaste":false,"disablePrint":false,"disableForwarding":false,"expires":false,"isManaged":false},"attachments":{}}"><div><br></div><div>We've depolyed NGINX <span style="color:rgb(0,102,33);font-size:14px;line-height:16px;white-space:nowrap">ngx_</span><b style="color:rgb(0,102,33);font-size:14px;line-height:16px;white-space:nowrap">http</b><span style="color:rgb(0,102,33);font-size:14px;line-height:16px;white-space:nowrap">_</span><b style="color:rgb(0,102,33);font-size:14px;line-height:16px;white-space:nowrap">secure</b><span style="color:rgb(0,102,33);font-size:14px;line-height:16px;white-space:nowrap">_</span><b style="color:rgb(0,102,33);font-size:14px;line-height:16px;white-space:nowrap">link</b><span style="color:rgb(0,102,33);font-size:14px;line-height:16px;white-space:nowrap">_<wbr>module</span> in our website based on php programming & its working well. Player is providing correct hash+expiry to serve links.</div><div><br></div><div>Though we're facing problem authenticating md5 from iphone mobile which is generating md5 based on C objective language & looks like this hash is somewhat different & have authenticating issue against NGINX md5. Is there any way of fixing it ?</div><div><br></div><div>Short conclusion :<br><br>Web APP == good</div><div>Mobile APP == bad</div><div><br></div><div>Please if anyone guide us, would be really helpful.</div><div><br></div><div>Regards</div><span class="HOEnZb"><font color="#888888"><div>Shahzaib</div><div><br></div><div><br></div></font></span></div>
<br>______________________________<wbr>_________________<br>
nginx mailing list<br>
<a href="mailto:nginx@nginx.org">nginx@nginx.org</a><br>
<a href="http://mailman.nginx.org/mailman/listinfo/nginx" rel="noreferrer" target="_blank">http://mailman.nginx.org/<wbr>mailman/listinfo/nginx</a><br></blockquote></div><br></div>