1
   

Breaking a code?

 
 
Reply Wed 28 Mar, 2007 07:21 pm
Breaking this code:

<script>
function boh() {
alert(huh(document.formular.pass.value) ? "Righty captain! Enter the password in the box below." : "Not even close!");
}
function huh(pw) {
var b = Array(8, 0, 28, 20, 20, 12, 0, 8);
var c = Array(0x71B131DD, 0xD965BB95, 0x99351B35, 0x313BB71B);
for(var i=0; i<pw.length; i+=4) {
var tmp = 0;
for(var j=0; j<b>3) ? 0xF0 : 0xF)) <<b>>=1)
tmp ^= (c[i/4] & 1) << j--;
if(++tmp) break;
}
return(i==16);
}
</script>

Can someone help me? Basically, I need to somehow figure out what the password is, and deriving from the pw.length; i+=4 I think it is safe to say that it is four chars? And the info in the arrays is the password, hashed?
  • Topic Stats
  • Top Replies
  • Link to this Topic
Type: Discussion • Score: 1 • Views: 1,639 • Replies: 3
No top replies

 
jespah
 
  1  
Reply Thu 29 Mar, 2007 04:17 am
Is this for a Javascript class?
0 Replies
 
official
 
  1  
Reply Sun 1 Apr, 2007 04:14 pm
Nevermind
0 Replies
 
newsn
 
  1  
Reply Sun 15 Apr, 2007 08:37 am
formular is what? a js class?
0 Replies
 
 

Related Topics

Webdevelopment and hosting - Question by harisit2005
Showing an Ico File - Discussion by Brandon9000
how to earn money in internet - Discussion by rizwanaraj
The version 10 bug. Worse then Y2K! - Discussion by Nick Ashley
CSS Border style colors - Question by meesa
There is no Wisdom in Crowds - Discussion by ebrown p
THANK YOU CRAVEN AND NICK!!! - Discussion by dagmaraka
I'm the developer - Discussion by Nick Ashley
 
  1. Forums
  2. » Breaking a code?
Copyright © 2024 MadLab, LLC :: Terms of Service :: Privacy Policy :: Page generated in 0.03 seconds on 05/17/2024 at 08:02:34