44 public function decrypt($data, $key): bool|string
49 $blockSize = $keyInfo[
'bits']/8;
51 foreach(str_split(base64_decode($data), $blockSize) as $chunk)
53 $decryptedChunk = $this->
doDecrypt($chunk, $key);
55 if ($decryptedChunk ===
false)
60 $result .= $decryptedChunk;