HumHub Documentation (unofficial)

Base64Url
in package

FinalYes

Encode and decode data into Base64 Url Safe.

Table of Contents

Methods

decode()  : string
encode()  : string

Methods

decode()

public static decode(string $data) : string
Parameters
$data : string

The data to decode

Tags
throws
InvalidArgumentException
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


        
On this page

Search results