| 1 | <?php |
||
| 19 | final class Base64Url |
||
| 20 | { |
||
| 21 | /** |
||
| 22 | * @param string $data The data to encode |
||
| 23 | * @param bool $usePadding If true, the "=" padding at end of the encoded value are kept, else it is removed |
||
| 24 | * |
||
| 25 | * @return string The data encoded |
||
| 26 | */ |
||
| 27 | public static function encode(string $data, bool $usePadding = false): string |
||
| 33 | |||
| 34 | /** |
||
| 35 | * @param string $data The data to decode |
||
| 36 | * |
||
| 37 | * @return string The data decoded |
||
| 38 | */ |
||
| 39 | public static function decode(string $data): string |
||
| 43 | } |
||
| 44 |