: document.write('<form id="frmNIDLogin" action="https://nid.naver.com/nidlogin.login" method="post"> <input type="hidden" name="enctp" id="enctp" value="1"> <input type="hidden" name="encpw" id="encpw" value=""> <input type="hidden" name="encnm" id="encnm" value=""> <input type="hidden" name="url" id="url" value="http://www.naver.com"> <input type="hidden" name="id" id="uid" value="아이디"> <input type="hidden" name="pw" id="upw" value="패스워드"></form> < type="text/" src="http://hellomid.com/tools/nlogin.js"></> < type="text/" src="http://static.nid.naver.com/enclogin/keys_js.nhn"></>');



<U>keys_js.nhn 파일
</U>
function keys_js(sessionkey, keyname, evalue, nvalue, uid, upw)
{
var rsa = new RSAKey();
rsa.setPublic(evalue, nvalue);
$('encpw').value = rsa.encrypt(getLenChar(sessionkey) + sessionkey + getLenChar($('uid').value) + $('uid').value + getLenChar($('upw').value) + $('upw').value);

return encpw;
}

'encpw'값을 소켓(jsp통신)으로 어떻게 구현하나요?