32 $string = rtrim(str_replace([
'+',
'/'], [
'-',
'_'], base64_encode($compressed_token)),
'=');
34 $string = chunk_split($string, $this->max_length,
"/");
42 $compressed_token = str_replace(
"/",
"", $compressed_token);
44 $string = base64_decode(str_replace([
'-',
'_'], [
'+',
'/'], $compressed_token .
'=='));
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
prepareForTransport(string $compressed_token)
__construct(private int $max_length=128)
readFromTransport(string $compressed_token)