403Webshell
Server IP : 10.200.247.200  /  Your IP : 216.73.217.19
Web Server : Apache
System : Linux synergy-usa-sites 6.8.0-138-generic #138-Ubuntu SMP PREEMPT_DYNAMIC Fri Jul 31 22:41:49 UTC 2026 x86_64
User : jeremy ( 1001)
PHP Version : 8.4.25
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : OFF  |  Sudo : ON  |  Pkexec : OFF
Directory :  /var/www/usa_sites/newusafunding.com/vx/lib/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /var/www/usa_sites/newusafunding.com/vx/lib/phpCrypto.class.php
<?php
class phpCrypto {
	private $key = '';
	private $algorithm = '';
	private $iv = '';
	
	public function __construct($key = 'MyRandomStringThatWillAlwaysBeTheSame', $iv = '6e8sd9f54c5ds65f23df', $algorithm = 'AES-256-CBC') {
		$this->key = $key;
		$this->algorithm = $algorithm;
		$this->iv = $iv;
	}

	public function encrypt($plain_string) {
		$key = hash('sha256', $this->key);
		$iv = substr(hash('sha256',$this->iv), 0, 16);
		$return = $plain_string;
		try {
			$return = base64_encode(openssl_encrypt($plain_string,$this->algorithm,$key,0,$iv));
		} catch(Exception $e) {
		}
		return $return;
	}

	public function decrypt($encrypted_string) {
		$key = hash('sha256', $this->key);
		$iv = substr(hash('sha256',$this->iv), 0, 16);
		$return = $encrypted_string;
		try {
			$return = openssl_decrypt(base64_decode($encrypted_string),$this->algorithm,$key,0,$iv);
		} catch(Exception $e) {
		}
		return $return;
	}  

	public function __destruct() {
	}
}
?>

Youez - 2016 - github.com/yon3zu
LinuXploit