JWT::urlsafeB64Decode( string $input )

Decode a string with URL-safe Base64.


Parameters Parameters

$input

(Required) A Base64 encoded string


Top ↑

Return Return

(string) A decoded string


Source Source

File: vendor/firebase/php-jwt/src/JWT.php

    public static function urlsafeB64Decode($input)
    {
        $remainder = \strlen($input) % 4;
        if ($remainder) {
            $padlen = 4 - $remainder;
            $input .= \str_repeat('=', $padlen);
        }
        return \base64_decode(\strtr($input, '-_', '+/'));
    }