AES Encryption (Classic ASP 암호화) > 질문답변

본문 바로가기
사이트 내 전체검색

질문답변

AES Encryption (Classic ASP 암호화)

페이지 정보

profile_image
작성자 미친새
댓글 0건 조회 22,975회 작성일 20-02-21 12:30

본문

AED 암호화 간단 예제

<%
 '* 예제

Option Explicit

Session.CodePage=65001

Response.Charset="UTF-8"

%>

<!--#include virtual="include/aesLibrary.asp"-->

<%

Dim dataIn, encrypted, decrypted, password

if LCase(Request.ServerVariables("HTTP_METHOD"))="post" then

    dataIn=request.form("dataIn")

    password=request.form("password")

 

    encrypted = AESEncrypt(dataIn, password)

    decrypted = AESDecrypt(encrypted, password)

end if

%><!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">

<html lang="en">


 
<head>

<title>rodsdot.com :: AES encryption and decryption</title>

<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">

<meta name="author" content="Roderick Divilbiss">

<meta name="copyright" content="© 2005-2010 Roderick Divilbiss">

</head>


<body>

<form method="POST" action="AES.asp">

  <p>Data In<br><textarea rows="5" name="dataIn" cols="50"><%=dataIn%></textarea></p>

  <p>Password<br><input type="text" name="password" size="50" value="<%=password%>"></p>

  <p><input type="submit" value="Submit" name="B1"></p>

  <p>Encrypted<br><textarea rows="5" name="encrypted" cols="50"><%=encrypted%></textarea></p>

  <p>Decrypted<br><textarea rows="5" name="decrypted" cols="50"><%=decrypted%></textarea></p>

</form>

</body>

 

</html>
--------------------------------------------------------------------
출처: http://www.rodsdot.com/asp/AES-Encryption-Using-ASP.asp
 --------------------------------------------------------------------

첨부파일 :

 aesLibrary.asp

 

Posted by 꼬꼬리코

첨부파일

댓글목록

등록된 댓글이 없습니다.

회원로그인

회원가입

사이트 정보

회사명 : 회사명 / 대표 : 대표자명
주소 : OO도 OO시 OO구 OO동 123-45
사업자 등록번호 : 123-45-67890
전화 : 02-123-4567 팩스 : 02-123-4568
통신판매업신고번호 : 제 OO구 - 123호
개인정보관리책임자 : 정보책임자명

공지사항

  • 게시물이 없습니다.

접속자집계

오늘
451
어제
2,005
최대
3,834
전체
849,912
Copyright © 소유하신 도메인. All rights reserved.