Server : Apache System : Linux cs317.bluehost.com 4.19.286-203.ELK.el7.x86_64 #1 SMP Wed Jun 14 04:33:55 CDT 2023 x86_64 User : andertr9 ( 1047) PHP Version : 8.2.18 Disable Function : NONE 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); } ?>