I'm trying to match a password hash which is bases off of a bitwise or
operation.

$password="bigpassword";
$hash="`{PqwUD}DkLPJckqFi_q{DR`Fwt]YNtZ";
$bit=$hash ^ $password;
print $bit;

The output I get is...

7&7
+(PJckqFi_q{DR`Fwt]YNtZ

The expected output is (this output is the correct output for the fake
password I provided)....

BR7AV&7J+Y(

The exclusive or operation alone is yielding the correct answer for the
operations which include the capital letters in the hash, special characters
and lowercase letters aren't turning out right.  I feel like I'm missing an
operation, but I can't seem to determine the correct one based off the
expected output.

Any suggestions would be greatly appreciated.

Dan QS


_______________________________________________
Perl-Win32-Admin mailing list
[EMAIL PROTECTED]
http://listserv.ActiveState.com/mailman/listinfo/perl-win32-admin

Reply via email to