PageSourceSearch

https://skypeople.me/static/js/login/login-de9c9223e248c0687efd6717deab2488.js

js skypeople.me collected 2026-09-24 10:59:49 UTC 2,413 bytes, 110 lines download raw bytes

1/**
2 * 풀페이지 로그인
3 */
4
5$(function(){
6	getsaveid();
7});
8
9function formEnter(key) {
10	if (event.keyCode==13){
11		if( key == 'password') chk_login();
12	}
13}
14
15function getPublicKey() {
16    var publicKey = "";
17    $.ajax({
18		type: 'POST',
19		url: '/key',
20		dataType: 'json',
21		async: false,
22        success: function (data) {
23        	publicKey = data.result;
24		}
25	});
26	return publicKey;
27}
28
29function getJsencrypt(publicKey) {
30    var jsencrypt = new JSEncrypt();
31    jsencrypt.setPublicKey(publicKey);
32    return jsencrypt;
33}
34
35function chk_login(){
36	var frm = document.frm;
37	if(frm.userId.value.length<1){
38		alert("회원ID(이메일주소)를 입력해 주세요");
39		frm.userId.focus();
40		return;
41	}
42	if(frm.pass.value.length<1){
43		alert("비밀번호를 입력해 주세요");
44		frm.pass.focus();
45		return;
46	}
47
48	//암호화 처리
49	var userId = frm.userId.value;
50	var pass =  frm.pass.value;
51
52    var jsencrypt = getJsencrypt(getPublicKey());
53
54	//1차 암호화
55	$.ajax({
56		type: 'POST',
57		url: '/security',
58		dataType: 'json',
59		data: {"userId" : jsencrypt.encrypt(userId), "pass" : jsencrypt.encrypt(pass)},
60        success: function (data) {
61        	if (data.result == "ok") {
62
63            	var frm = document.frm;
64            	if(frm.checksaveid.checked){
65        			saveid();
66        		}else{
67        			frm.checksaveid.checked = false;
68        		}
69
70            	location.href = "/";
71
72            } else {
73            	if(data.result == "fail") {
74            		alert("정상 승인 회원이 아닙니다. 고객센터로 문의해주세요.");
75            	} else {
76            		alert("로그인 정보가 올바르지 않습니다.");
77            	}
78            }
79		},
80     error:function(request,status,error){
81         alert("코드 : "+request.status+"\n"+"출력 : "+request.responseText+"\n"+"에러 : "+error);
82        }
83	});
84}
85
86function saveid() {
87	var frm = document.frm;
88	var saveid = frm.userId.value;
89	
90	setEncCookie("saveid", saveid);
91}
92
93
94function getsaveid() {
95	var frm = document.frm;
96	var saveid = getDecCookie("saveid");
97	
98	if(saveid) {
99		frm.userId.value = saveid;
100		frm.checksaveid.checked = true;
101	}
102}
103
104	 // 비밀번호를 RSA로 암호화한다.
105	function fnRsaEnc(value, rsaPublicKeyModulus, rsaPpublicKeyExponent) {
106	    var rsa = new RSAKey();
107	    rsa.setPublic(rsaPublicKeyModulus, rsaPpublicKeyExponent);
108	     var encValue = rsa.encrypt(value);
109	     return encValue;
110	}

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.