<code><span><span><<span>body</span><span>style</span>=<span>"color:green;font-size:28px;background:black;font-family:Verdana, sans-serif;"</span>></span><span><span><?php</span> error_reporting(<span>0</span>);<span>?></span></span><span><<span>form</span><span>name</span>=<span>"c"</span><span>action</span>=<span>"<?php echo $_SERVER['PHP_SELF'];?>"</span><span>method</span>=<span>"get"</span>></span> Input your text: <span><<span>input</span><span>type</span>=<span>"text"</span><span>name</span>=<span>"c"</span> /></span><span><<span>button</span><span>type</span>=<span>"submit"</span><span>value</span>=<span>"Submit"</span><span>style</span>=<span>"color:green;font-size:28px;background:black;"</span>></span>Creat!<span></<span>button</span>></span><span></<span>form</span>></span><span></<span>body</span>></span><span><span><?php</span><span>//hash encode:</span><span>if</span>(<span>$c</span>=<span>$_GET</span>[<span>'c'</span>])<span>echo</span><span>'Roger!Your MD5 code is:<br>'</span>.md5(<span>$c</span>).<span>'(32bit)<br>'</span>.substr(md5(<span>$c</span>),<span>8</span>,<span>16</span>).<span>'(16bit)'</span>;<span>//截取8到24就是16位的hash,便于储存</span><span>?></span></span></code>
위 내용은 관련 내용을 포함하여 PHP MD5 암호화 코드를 소개합니다. PHP 튜토리얼에 관심이 있는 친구들에게 도움이 되기를 바랍니다.