Psecio\Jwt\Jwt::base64Encode PHP Метод

base64Encode() публичный Метод

Base64 encode data and prepare for the URL NOTE: The "=" is removed as it's just padding in base64 and not needed.
public base64Encode ( string $data ) : string
$data string Data string
Результат string Formatted data
    public function base64Encode($data)
    {
        return rtrim(strtr(base64_encode($data), '+/', '-_'), '=');
    }