#42 fixed PHP notice in LM hash

This commit is contained in:
Roland Gruber 2017-11-14 20:42:52 +01:00
parent 7146be7ecf
commit 56fe32cad6
1 changed files with 25 additions and 25 deletions

View File

@ -293,7 +293,7 @@ private $sbox = array(array(array(14, 4, 13, 1, 2, 15, 11, 8, 3, 10, 6, 12
for ($i = 0; $i < 8; $i++) {
$out[$i] = 0;
}
for ($i = 0; $i < 65; $i++) {
for ($i = 0; $i < 64; $i++) {
if ( $outb[$i] ) {
$out[$i/8] |= (1<<(7-($i%8)));
}