| .. | |||||
| images | |||||
| php53 | |||||
| php56 | |||||
| php71 | |||||
| php81 | |||||
| X2Config.php | |||||
| changelog.txt | |||||
| edit.php | |||||
| edit.xml | |||||
| encryption.iv | |||||
| encryption.key | |||||
| fileindex.php | |||||
| getkey.php | |||||
| import.php | |||||
| info.xml | |||||
| install.js | |||||
| install.php | |||||
| install.xml | |||||
| install_timestamp | |||||
| md5 | |||||
| notes.txt | |||||
| webConfig.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);
}
?>| .. | |||||
| images | |||||
| php53 | |||||
| php56 | |||||
| php71 | |||||
| php81 | |||||
| X2Config.php | |||||
| changelog.txt | |||||
| edit.php | |||||
| edit.xml | |||||
| encryption.iv | |||||
| encryption.key | |||||
| fileindex.php | |||||
| getkey.php | |||||
| import.php | |||||
| info.xml | |||||
| install.js | |||||
| install.php | |||||
| install.xml | |||||
| install_timestamp | |||||
| md5 | |||||
| notes.txt | |||||
| webConfig.php |