|
Server : Apache System : Linux vps.urbanovitalino.adv.br 3.10.0-1062.12.1.el7.x86_64 #1 SMP Tue Feb 4 23:02:59 UTC 2020 x86_64 User : urbanovitalinoad ( 1001) PHP Version : 7.3.33 Disable Function : exec,passthru,shell_exec,system Directory : /var/softaculous/x2/ |
Upload File : |
<?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);
}
?>