<%
/**
 * <pre>
 * @Class Name : getSampleInfo.jsp
 * 
 * @Description : RESTful API 호출 샘플
 * 
 * 
 * @프로젝트명: 지방문화원 통합자료관리시스템 구축사업 (2021)
 *
 * </pre>
 *
 * @ ------------    --------    ---------------------------
 * @ 수정일                     수정자             수정내용
 * @ ------------    --------    ---------------------------
 * @ 2021. 6. 15.    KNKIM       최초 생성
 *
 * 
 * @author 이씨플라자 * DIGITALSHIP KNKIM
 * @since 2021. 6. 15.
 * @version 1.0
 *
 */
 %>
<%@ page language="java" contentType="text/html; charset=UTF-8" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ taglib prefix="ui" uri="http://egovframework.gov/ctl/ui" %>
<%@ taglib prefix="fn" uri="http://java.sun.com/jsp/jstl/functions" %>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt" %>
<%@ taglib prefix="spring" uri="http://www.springframework.org/tags" %>
<%@ taglib prefix="form" uri="http://www.springframework.org/tags/form" %>

<c:set var="pageTitle">암호화</c:set>

<!DOCTYPE html>
<html>
<head>
<title>${pageTitle}</title>
<meta http-equiv="content-type" content="text/html; charset=utf-8">
<!-- <link type="text/css" rel="stylesheet" href="<c:url value='/css/egovframework/com/com.css' />"> -->

<script type="text/javaScript" language="javascript">

</script>
</head>

<body>

<!-- javascript warning tag  -->
<noscript class="noScriptTitle"><spring:message code="common.noScriptTitle.msg" /></noscript>
<form:form commandName="reqInfo" 
    action="${pageContext.request.contextPath}/sample/password/getSampleEncoder.do" method="post" > 
	<div class="wTableFrm">
	    <!-- 타이틀 -->
	    <h2>${pageTitle} </h2>
	    msg : ${msg} <br />
	    hash : <input name="hash" id="hash" value="${hash}" /> ("sha-256" 또는 "aria" 입력) <br />
        key : ${key} (hash 알고리즘이 aria인 경우) <br />
	    plainText : <input name="plainText" id="plainText" value="${plainText}" /> <br />
	    encodedText : <input name="encodedText" id="encodedText" value="${encodedText}" /> <br />
	    decodedText : ${decodedText} <br />
	    <div style="clear:both;">&nbsp;</div>
	    
	    <!-- 하단 버튼 -->
	    <div class="btn">
	        <input type="submit" value="암/복호화 실행" />
	    </div>

	</div>
</form:form>

</body>
</html>
