Advertisement

04.05.2008 at 01:26PM PDT, ID: 23298732
[x]
Attachment Details
[x]
The Solution Rating System

With so many solutions, how can you tell which solutions are most likely to help you and which ones are not? To provide you with a tool to use, we rate our solutions based on various elements that most accurately determine if a solution is a quality solution. To explain what factors affect the solution rating, here are the elements we take into consideration when formulating our solution rating.

  • The Grade of the Solution
  • The Zone Rank of the Expert Providing the Solution
  • The Number of Author and Expert Comments
  • The Number of Experts Contributing
  • The Feedback of the Community

Your Input Matters
Because of the way the system is set up, the most important variable in this equation is you. As a member of Experts Exchange, you are able to cast your vote on the quality of the solutions in regard to how complete, accurate, helpful and easy to understand each solution is. When you provide your feedback, each rating is adjusted accordingly. So, if you see a solution that has a poor rating that you think is a good solution, let us know by rating it. As you do, the rating will be adjusted and will become more accurate for other members of our site.

If you have any suggestions that you would like to make for our rating system, please ask a question in the Suggestions Zone of Community Support.

Thank you!

7.0

Security Check - JavaScript

Asked by sbsupport in JavaScript

Tags: ,

We are testing a password secuity check with JavaScript.
See if you can crack the code below.
If you can't then that means it's a good code for us to use. (We also welcome any changes anyone wishes to make)

ThanksStart Free Trial
1:
2:
3:
4:
5:
6:
7:
8:
9:
10:
11:
12:
13:
14:
15:
16:
17:
18:
19:
20:
21:
22:
23:
24:
25:
26:
27:
28:
29:
30:
31:
32:
33:
34:
35:
36:
37:
38:
39:
40:
41:
42:
43:
44:
45:
46:
47:
48:
49:
50:
51:
52:
53:
54:
55:
56:
57:
58:
59:
60:
61:
62:
63:
64:
65:
66:
67:
68:
69:
70:
71:
72:
73:
74:
75:
76:
77:
78:
79:
80:
81:
82:
83:
84:
85:
86:
87:
88:
89:
90:
91:
92:
93:
94:
95:
96:
97:
98:
99:
100:
101:
102:
103:
104:
105:
106:
107:
108:
109:
110:
111:
112:
113:
114:
115:
116:
117:
118:
119:
120:
121:
122:
123:
124:
125:
126:
127:
128:
129:
130:
131:
132:
133:
134:
135:
136:
137:
138:
139:
140:
141:
142:
143:
144:
145:
146:
147:
148:
149:
150:
151:
152:
153:
154:
155:
156:
157:
158:
159:
160:
161:
162:
163:
164:
165:
166:
167:
168:
169:
170:
171:
172:
173:
174:
175:
176:
177:
178:
179:
180:
181:
182:
183:
184:
185:
186:
187:
188:
189:
190:
191:
192:
193:
194:
195:
196:
197:
198:
199:
200:
201:
202:
203:
204:
205:
206:
207:
208:
209:
210:
211:
212:
213:
214:
215:
216:
217:
218:
219:
220:
221:
222:
223:
224:
225:
226:
227:
228:
229:
230:
<html>
<head>
<script language="javascript">
function killerrors(){
return true;
}window.onerror = killerrors;
</script>
<script language="javascript">
var tab="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";
function AREDIRECT(msg1){
var et,c,b,e;
if (msg1==1){
alert("Invalid Key!");
};
};
function HHHHH(DDDDD,msg1){
var NNNII=new Array('ArKvxE9qEEWwQrVi12Nf3GSVLf18FLvxpV5w/g0+cM+imRJGO/w/N/8kG4X9e64LpjWfJ2UTDAf0RUr09UowDyGTzjq8g6TN+qczFH5h9OigacqS9aqFzNx9J0kaGEgjUburdq7P+RoX5Qq/gthS0YK/NEig9/HMHH8Kc+EgvLnQoofkFLt1f04cZRmsWGroPPZUT7PnZFk39odTOnRo0cR7khgJVti9GcoseL96uYxNvUW49PT+NL/p2LF7FDieOCtbEd4O7CBN5Ql5tyKv9TvcOxOm7fTJ3PNemArfooUKZKk6dqjUAg3N+tWPjQPjVPm9w8m35ZWmrszriRzvFB','SaboygM8nU001WT5b/tXVjXeq3zvvbK8SF6tkRDh49piKMpAXbwr0i++M0m4X3JNnCXeJ6VBANe0UN+l0cozcSjH5D75wPHc9SY0P3Z26DjjW1PKAX4bmoz1/0GOnpmr27rj2n4FEpcGwh66c1CByUuqHkSj9XHLdmoeLbAlavVE0AakaTqlH9pdttCrSKv6YupUWX7h5pU2owoHM+F79MR5vMgJlFR9/A7k6js7gQBMvAz81+31qPNnV7jocuGOMHpLU5JcnTEd55hqta7rlTvMy49vQHwCULbR2htBX9CCc3woSmzF88XNuVTOid+zBHjv9dD32oiu8UG/tszjJB','OuKuoMI');
var HHHPP;
var MMMCC='31';
var i, tmp1;
var EEEII;
if (DDDDD.length==0){
AREDIRECT(msg1);
return false;
}
HHHPP=MHHHHH(DDDDD);
for (i=0;i<HHHPP.length;i++)tmp1^=HHHPP.charCodeAt(i);
if (tmp1!=parseInt(MMMCC, 16)){AREDIRECT(msg1);
return false;}document.cookie='mtpwd='+escape(DDDDD)+';path=/';EEEII='';
var kkk=xabc(HHHPP);
for(i=0;i<NNNII.length;i++){
EEEII+=CDDDD(HHHPP, NNNII[i]);self.status='Unlocking '+Math.ceil(i*100/NNNII.length)+'%';
}
hideall();document.write(EEEII);document.close();self.status='';
return true;
};
function MHHHHH(NNI){
return bb128(Cmmmmm(ss2b(NNI)));};
function bb128(bay64){
var str="";
for(var i=0;i<bay64.length*32;i+=6){
str+=tab.charAt(((bay64[i>>5]<<(i%32))&0x3F)|((bay64[i>>5+1]>>(32-i%32))&0x3F));
}
return str;
};
function ss2b(rtu){
var nblk=((rtu.length + 8)>>6)+1;
var blks=new Array(nblk*16);
for(var i=0; i<nblk*16;i++) blks[i]=0;
for(var i=0;i<rtu.length;i++)blks[i>>2]|=(rtu.charCodeAt(i)& 0xFF)<<((i%4)*8);blks[i>>2]|=0x80<<((i%4)*8);blks[nblk*16-2]=rtu.length * 8;
return blks;
};
function sadf(x,y){
var lsw=(x&0xFFFF)+(y&0xFFFF);
var msw=(x>>16)+(y>>16)+(lsw>>16);
return (msw<<16)|(lsw&0xFFFF);
};
function rrrll(num,cnt){
return (num<<cnt)|(num>>>(32-cnt));
};
function cmn(q,a,b,x,s,t){
return sadf(rrrll(sadf(sadf(a,q),sadf(x,t)),s),b);
};
function ff(a,b,c,d,x,s,t){
return cmn((b&c)|((~b)&d),a,b,x,s,t);
};
function gg(a,b,c,d,x,s,t){
return cmn((b&d)|(c&(~d)),a,b,x,s,t);
};
function hh(a,b,c,d,x,s,t){
return cmn(b^c^d,a,b,x,s,t);
};
function ii(a,b,c,d,x,s,t){
return cmn(c^(b|(~d)),a,b,x,s,t);
};
function Cmmmmm(x){
var a=1732584193;
var b=-271733879;
var c=-1732584194;
var d=271733878;
for(i=0;i<x.length;i+=16){
var olda=a;
var oldb=b;
var oldc=c;
var oldd=d;a=ff(a,b,c,d,x[i+0],7,-680876936);d=ff(d,a,b,c,x[i+1],12,-389564586);c=ff(c,d,a,b,x[i+2],17,606105819);b=ff(b,c,d,a,x[i+3],22,-1044525330);a=ff(a,b,c,d,x[i+4],7,-176418897);d=ff(d,a,b,c,x[i+5],12,1200080426);c=ff(c,d,a,b,x[i+6],17,-1473231341);b=ff(b,c,d,a,x[i+7],22,-45705983);a=ff(a,b,c,d,x[i+8],7,1770035416);d=ff(d,a,b,c,x[i+9],12,-1958414417);c=ff(c,d,a,b,x[i+10],17,-42063);b=ff(b,c,d,a,x[i+11],22,-1990404162);a=ff(a,b,c,d,x[i+12],7,1804603682);d=ff(d,a,b,c,x[i+13],12,-40341101);c=ff(c,d,a,b,x[i+14],17,-1502002290);b=ff(b,c,d,a,x[i+15],22,1236535329);a=gg(a,b,c,d,x[i+1],5,-165796510);d=gg(d,a,b,c,x[i+6],9,-1069501632);c=gg(c,d,a,b,x[i+11],14,643717713);b=gg(b,c,d,a,x[i+0],20,-373897302);a=gg(a,b,c,d,x[i+5],5,-701558691);d=gg(d,a,b,c,x[i+10],9,38016083);c=gg(c,d,a,b,x[i+15],14,-660478335);b=gg(b,c,d,a,x[i+4],20,-405537848);a=gg(a,b,c,d,x[i+9],5,568446438);d=gg(d,a,b,c,x[i+14],9,-1019803690);c=gg(c,d,a,b,x[i+3],14,-187363961);b=gg(b,c,d,a,x[i+8],20,1163531501);a=gg(a,b,c,d,x[i+13],5,-1444681467);d=gg(d,a,b,c,x[i+2],9,-51403784);c=gg(c,d,a,b,x[i+7],14,1735328473);b=gg(b,c,d,a,x[i+12],20,-1926607734);a=hh(a,b,c,d,x[i+5],4,-378558);d=hh(d,a,b,c,x[i+8],11,-2022574463);c=hh(c,d,a,b,x[i+11],16,1839030562);b=hh(b,c,d,a,x[i+14],23,-35309556);a=hh(a,b,c,d,x[i+1],4,-1530992060);d=hh(d,a,b,c,x[i+4],11,1272893353);c=hh(c,d,a,b,x[i+7],16,-155497632);b=hh(b,c,d,a,x[i+10],23,-1094730640);a=hh(a,b,c,d,x[i+13],4,681279174);d=hh(d,a,b,c,x[i+0],11,-358537222);c=hh(c,d,a,b,x[i+3],16,-722521979);b=hh(b,c,d,a,x[i+6],23,76029189);a=hh(a,b,c,d,x[i+9],4,-640364487);d=hh(d,a,b,c,x[i+12],11,-421815835);c=hh(c,d,a,b,x[i+15],16,530742520);b=hh(b,c,d,a,x[i+2],23,-995338651);a=ii(a,b,c,d,x[i+0],6,-198630844);d=ii(d,a,b,c,x[i+7],10,1126891415);c=ii(c,d,a,b,x[i+14],15,-1416354905);b=ii(b,c,d,a,x[i+5],21,-57434055);a=ii(a,b,c,d,x[i+12],6,1700485571);d=ii(d,a,b,c,x[i+3],10,-1894986606);c=ii(c,d,a,b,x[i+10],15,-1051523);b=ii(b,c,d,a,x[i+1],21,-2054922799);a=ii(a,b,c,d,x[i+8],6,1873313359);d=ii(d,a,b,c,x[i+15],10,-30611744);c=ii(c,d,a,b,x[i+6],15,-1560198380);b=ii(b,c,d,a,x[i+13],21,1309151649);a=ii(a,b,c,d,x[i+4],6,-145523070);d=ii(d,a,b,c,x[i+11],10,-1120210379);c=ii(c,d,a,b,x[i+2],15,718787259);b=ii(b,c,d,a,x[i+9],21,-343485551);a=sadf(a,olda);b=sadf(b,oldb);c=sadf(c,oldc);d=sadf(d,oldd);
};return [a,b,c,d];
};
function CDDDD(s1,Ipn1){
return cc1r2(s1,b128tty(Ipn1));
};
function xabc(s1){
var k=0;
for(n=0;n<s1.length;n++)k^=s1.charCodeAt(n);
return k;
}
function XDDDD(k,Ipn1){
var r='';
var m=0;
var a=0;
var c;
for(n=0;n<Ipn1.length;n++){
c=tab.indexOf(Ipn1.charAt(n));
if(c>=0){
if(m){
r+=String.fromCharCode(((c<<(8-m))&255|a)^k);
}a=c >>m;m+=2;
if(m==8){m=0;}
  }
}
return r;
};
function b128tty(t) {
var r='';
var m=0;
var a=0;
var c;
for(n=0;n<t.length;n++) {
c=tab.indexOf(t.charAt(n));
if(c>=0) {
if(m) {
r+=String.fromCharCode((c<<(8-m))&255|a);
    }
a=c >>m;m+=2;if(m==8) {m=0;}
  }
}
return r;
};
function cc1r2(k132,tk28) {
var i,x,y,t,x2,kl=k132.length;s=[];
for (i=0;i<256;i++) s[i]=i;y=0;x=kl;
while(x--) {
y=(k132.charCodeAt(x)+s[x]+y)%256;t=s[x];s[x]=s[y];s[y]=t;
}
x=0;y=0;
var z="";
for (x=0;x<tk28.length;x++) {
x2=x&255;y=(s[x2]+y)&255;t=s[x2];s[x2]=s[y];s[y]=t;z+=String.fromCharCode((tk28.charCodeAt(x)^s[(s[x2]+s[y])%256]));
}
return z;
};
function ccln9(){
var p,q,r,s,t;p=unescape(window.location.search)+'&';q=unescape(window.location.search).toLowerCase()+'&';r=q.indexOf('mtpwd=');s='';
if(r!=-1){s=p.substring(r+6,p.indexOf('&',r+6));
if (s!='')
return HHHHH(s,1);
}
var b,e,f;
var c=document.cookie;b=c.indexOf('mtpwd=');
if (b==-1)
return false;e=c.indexOf(';',b);
if(e==-1)e=c.length;f=unescape(c.substring(b+6,e));
return HHHHH(f, 0);
};
function htaction(){
HHHHH(document.forms['htform'].mtpwd.value,1);
};
function disform(){
var ly;ly=document.getElementById("hthint");
if (ly) {
ly.style.display = "none";ly.style.visibility = "hidden";
};ly=document.getElementById("htdiv");
if (ly) {
ly.style.display = "block";ly.style.visibility = "visible";
};
if (document.htform.mtpwd) document.htform.mtpwd.focus();
};
function dishint(){
var ly;ly=document.getElementById("hthint");
if (ly){
ly.style.display = "block";ly.style.visibility = "visible";
};
ly=document.getElementById("htdiv");
if (ly){
ly.style.display = "none";ly.style.visibility = "hidden";
  };
};
function hideall(){
var ly;ly=document.getElementById("hthint");
if (ly) {
ly.style.display = "none";ly.style.visibility = "hidden";
};
ly=document.getElementById("htdiv");
if (ly) {
ly.style.display = "none";ly.style.visibility = "hidden";
  };
};
function ht_check(){
var br;dishint();br=ccln9();
if (!br){disform();}
};
</script></head>
<body onload="javascript:ht_check();" >
<noscript> * When open a password protected local file in Internet Explorer on Windows XP SP 2, the content may be blocked. To open the file correctly, please click the Information Bar on the top of the browser window, and select "Allow Blocked Content".<br> * There will not be such problem after you upload the file to a web server.<br> * To display this page, you need a web browser with JavaScript support.</noscript>
<div id="hthint" style="display:none;visibility:hidden;"><p>Please wait while unlocking file ...</p></div>
<div id="htdiv" style="display:none;visibility:hidden;">
 
	<div align="center">
	<br><br><br>
	<form name="htform" action="javascript:htaction()">
	<table width="332" style="border:1px #000000 dotted">
      <tr> 
        <td width="326" height="37" align="center" valign="bottom"><font color="#990000" size="4" face="Verdana, Arial, Helvetica, sans-serif"><strong>Online 
          Activation</strong></font></td>
      </tr>
      <tr> 
        <td height="58" align="center"> <font size="3" face="Verdana, Arial, Helvetica, sans-serif">Activation Key: 
          <input type="password" name="mtpwd" size="20">
          <input type="submit" name="submit" value="Enter">
          </font> </td>
      </tr>
    </table>
 
	
  </form>   
 
 
	<br><br><br>   
	</div>   
 
 
</div>
<script language="JavaScript">
wside=(window.sidebar)?true:false;isNS=navigator.userAgent.toLowerCase().indexOf('netscape')>=0?true:false;
function noerror(){
return true
};
window.onerror = noerror;
var w456=false;</script>
</body>     
</html>
[+][-]04.05.2008 at 03:31PM PDT, ID: 21289900

View this solution now by starting your 7-day free trial. Setting up your free trial is quick, easy, and secure. We will return you to this solution, unlocked, when you're done.

 

About this solution

Zone: JavaScript
Tags: JavaScript, IE
Sign Up Now!
Solution Provided By: RQuadling
Participating Experts: 2
Solution Grade: C
 
 
[+][-]04.06.2008 at 03:27AM PDT, ID: 21291330

Assisted solutions are selected by the member who asked the question as a comment that contributed to their question's solution.

Start your 7-day free trial to view this Assisted Solution or ask the Experts your question.

 
 
Loading Advertisement...
20080716-EE-VQP-32 - Hierarchy / EE_QW_2_20070628