Server IP : 68.65.122.142  /  Your IP : 3.145.173.6
Web Server : LiteSpeed
System : Linux server167.web-hosting.com 4.18.0-513.18.1.lve.el8.x86_64 #1 SMP Thu Feb 22 12:55:50 UTC 2024 x86_64
User : glenirhm ( 1318)
PHP Version : 7.4.33
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : ON
Directory (0755) :  /var/softaculous/toaster/../ninja/../myweb/../mt/../sidu/../x2/

[  Home  ][  C0mmand  ][  Upload File  ]

Current File : //var/softaculous/toaster/../ninja/../myweb/../mt/../sidu/../x2/getkey.php
<?php

if(function_exists('openssl_random_pseudo_bytes')){
	$EncryptionIV = __genIV();
	$EncryptionKEY = __genKey();
}
	
echo '<Encryptioniv>'.$EncryptionIV.'</Encryptioniv>';
echo '<Encryptionkey>'.$EncryptionKEY.'</Encryptionkey>';

function __genKey($length = 32){
	$key = openssl_random_pseudo_bytes($length, $strong);
	return ($strong ? $key : false);
}

function __genIV() {
	$nonceSize = openssl_cipher_iv_length('aes-256-ctr');
	return openssl_random_pseudo_bytes($nonceSize);
}

?>