!C99Shell v. 2.1 [PHP 8 Update] [02.02.2022]!

Software: Apache/2.4.53 (Unix) OpenSSL/1.1.1o PHP/7.4.29 mod_perl/2.0.12 Perl/v5.34.1. PHP/7.4.29 

uname -a: Linux vps-2738122-x 4.15.0-213-generic #224-Ubuntu SMP Mon Jun 19 13:30:12 UTC 2023 x86_64 

uid=1(daemon) gid=1(daemon) grupos=1(daemon) 

Safe-mode: OFF (not secure)

/opt/apex_led/php/vendor/ircmaxell/random-lib/test/Unit/RandomLib/Source/   drwxrwxr-x
Free 11.48 GB of 61.93 GB (18.54%)
Home    Back    Forward    UPDIR    Refresh    Search    Buffer    Encoder    Tools    Proc.    FTP brute    Sec.    SQL    PHP-code    Update    Feedback    Self remove    Logout    


Viewing file:     SodiumTest.php (2.1 KB)      -rwxrwxr-x
Select action/file-type:
(+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
<?php

/*
 * The RandomLib library for securely generating random numbers and strings in PHP
 *
 * @author     Anthony Ferrara <ircmaxell@ircmaxell.com>
 * @copyright  2011 The Authors
 * @license    http://www.opensource.org/licenses/mit-license.html  MIT License
 * @version    Build @@version@@
 */
namespace RandomLib\Source;

use 
SecurityLib\Strength;

class 
SodiumTest extends \PHPUnit_Framework_TestCase
{
    public static function 
provideGenerate()
    {
        
$data = array();
        for (
$i 1$i 100$i += 5) {
            
$not str_repeat(chr(0), $i);
            
$data[] = array($i$not);
        }

        return 
$data;
    }

    
    public function 
testGetStrength()
    {
        
$strength = new Strength(Strength::HIGH);
        
$actual Sodium::getStrength();
        
$this->assertEquals($actual$strength);
    }

    
/**
     * @dataProvider provideGenerate
     */
    
public function testGenerate($length$not)
    {
        if (!
extension_loaded('libsodium')) {
            
$this->markTestSkipped('The libsodium extension is not loaded');
        }

        
$rand = new Sodium();
        
$stub $rand->generate($length);
        
$this->assertEquals($lengthstrlen($stub));
        
$this->assertNotEquals($not$stub);
    }

    
/**
     * @dataProvider provideGenerate
     */
    
public function testGenerateWithoutLibsodium($length$not)
    {
        
$rand = new Sodium(false);
        
$stub $rand->generate($length);
        
$this->assertEquals($lengthstrlen($stub));
        
$this->assertEquals($not$stub);
    }

    public function 
testGenerateWithZeroLength()
    {
        if (!
extension_loaded('libsodium')) {
            
$this->markTestSkipped('The libsodium extension is not loaded');
        }

        
$rand = new Sodium();
        
$stub $rand->generate(0);
        
$this->assertEquals(0strlen($stub));
        
$this->assertEquals(''$stub);
    }

    public function 
testGenerateWithZeroLengthWithoutLibsodium()
    {
        
$rand = new Sodium(false);
        
$stub $rand->generate(0);
        
$this->assertEquals(0strlen($stub));
        
$this->assertEquals(''$stub);
    }
}

:: Command execute ::

Enter:
 
Select:
 

:: Search ::
  - regexp 

:: Upload ::
 
[ Read-Only ]

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

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

--[ c99shell v. 2.1 [PHP 8 Update] [02.02.2022] maintained byC99Shell Github | Generation time: 1.0034 ]--