Base64Url
in package
FinalYes
Encode and decode data into Base64 Url Safe.
Table of Contents
Methods
Methods
decode()
public
static decode(string $data) : string
Parameters
- $data : string
-
The data to decode
Tags
Return values
string —The data decoded
encode()
public
static encode(string $data[, bool $usePadding = false ]) : string
Parameters
- $data : string
-
The data to encode
- $usePadding : bool = false
-
If true, the "=" padding at end of the encoded value are kept, else it is removed
Return values
string —The data encoded