Update class name FixedBitNotation to base2n
This commit is contained in:
parent
3c2c1f01f2
commit
1b025e0aa2
|
|
@ -41,7 +41,7 @@ class google_authenticator {
|
||||||
$time = floor(time() / 30);
|
$time = floor(time() / 30);
|
||||||
}
|
}
|
||||||
|
|
||||||
$base32 = new FixedBitNotation(5, 'ABCDEFGHIJKLMNOPQRSTUVWXYZ234567', TRUE, TRUE);
|
$base32 = new base2n(5, 'ABCDEFGHIJKLMNOPQRSTUVWXYZ234567', TRUE, TRUE);
|
||||||
$secret = $base32->decode($secret);
|
$secret = $base32->decode($secret);
|
||||||
|
|
||||||
$time = pack("N", $time);
|
$time = pack("N", $time);
|
||||||
|
|
@ -76,7 +76,7 @@ class google_authenticator {
|
||||||
$secret .= pack("c",$c);
|
$secret .= pack("c",$c);
|
||||||
}
|
}
|
||||||
|
|
||||||
$base32 = new FixedBitNotation(5, 'ABCDEFGHIJKLMNOPQRSTUVWXYZ234567', TRUE, TRUE);
|
$base32 = new base2n(5, 'ABCDEFGHIJKLMNOPQRSTUVWXYZ234567', TRUE, TRUE);
|
||||||
return $base32->encode($secret);
|
return $base32->encode($secret);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue