카테고리 없음 [PHP]MD5,Base64 인코딩,디코딩 free_flight 2013. 1. 17. 18:57 md5 난독화,Base64 인코딩 페이지 소스입니다.이 페이지 이름은 incode.php에요(컨셉이에요, 오타라하지말아줘요.)----추천----<html> <head> <? $value = $_POST["id3"]; $md5 = $_POST["id"]; $base64_encode = $_POST["id1"]; $base64_decode = $_POST["id2"]; if($value == 1){ echo "결과: ".md5($md5)."<br>"; }else if($value == 2){ echo "결과: ".base64_encode($base64_encode)."<br>"; }else if($value == 3){ echo "결과: ".base64_decode($base64_decode)."<br>"; }else{ echo "Error!"; } ?> <title> </title> </head> <form action="incode.php" method="POST" enctype="multipart/form-data"> md5: <input type="text" name="id" size="15" maxlength="100"><br> <input type="hidden" name="id3" style="width=0%;" size="1" value = "1"> <input type="submit" value="난독화"> </form> <form action="incode.php" method="POST" enctype="multipart/form-data"> base64_encode: <input type="text" name="id1" size="15" maxlength="100"><br> <input type="hidden" name="id3" style="width=0%;" size="1" value = "2"> <input type="submit" value="암호화"> </form> <form action="incode.php" method="POST" enctype="multipart/form-data"> base64_decode: <input type="text" name="id2" size="15" maxlength="100"><br> <input type="hidden" name="id3" style="width=0%;" size="1" value = "3"> <input type="submit" value="복호화"> </form> </form> <center> <br><a style="text-decoration: none;" class="con_link" onmouseover="this.style.textDecoration='underline';" onmouseout="this.style.textDecoration='none';" href="http://webftp.tistory.com/" target="_blank"><font color="black" size = '2'>개발자 블로그</font></a><br> <script type="text/javascript"> google_ad_client = "ca-pub-9586198508588673"; /* 업로더 홍보2 */ google_ad_slot = "9679099317"; google_ad_width = 728; google_ad_height = 90; </script> <script type="text/javascript" src="http://pagead2.googlesyndication.com/pagead/show_ads.js"> </script><br> <h3> CopyLeftⓒfree flight aircraft(nuclear_1) 2013 All Rights Reserved. </h3></center> </html> 공유하기 게시글 관리 구독하기비행기의 정보창고 저작자표시 비영리 동일조건 '전체' Related Articles [php]DB 접속 내용확인 [PHP]비동기 업로드 [PHP]현재 시간 나타내기 [PHP]캐쉬 삭제