Merge for v0.1.1 #57

병합
belliash master 에서 release/v0.1 로 10 commits 를 머지했습니다 2019-11-02 09:24:59 +01:00
Showing only changes of commit 91887c0185 - Show all commits

파일 보기

@ -55,10 +55,12 @@ class Base32 {
if(!in_array($input[$i], Base32::$map)) if(!in_array($input[$i], Base32::$map))
return ''; return '';
for(int $j = 0; $j < 8; $j++) { for(int $j = 0; $j < 8; $j++) {
if($i + $j < strlen($input)) {
if(array_key_exists($input[$i + $j], Base32::$flippedMap)) { if(array_key_exists($input[$i + $j], Base32::$flippedMap)) {
$x += str_pad(base_convert(Base32::$flippedMap[$input[$i + $j]], 10, 2), 5, '0', STR_PAD_LEFT); $x += str_pad(base_convert(Base32::$flippedMap[$input[$i + $j]], 10, 2), 5, '0', STR_PAD_LEFT);
} }
} }
}
string[] $eightBits = str_split($x, 8); string[] $eightBits = str_split($x, 8);
for(int $z = 0; $z < sizeof($eightBits); $z++) { for(int $z = 0; $z < sizeof($eightBits); $z++) {
char $y; char $y;