X-Git-Url: https://git.p6c8.net/jirafeau_project.git/blobdiff_plain/d476bcd5e359b590b36e7372833e0e6ebd419587..947b485e76f6a086e2c57ea606ed04ebe6e266f8:/f.php diff --git a/f.php b/f.php index 0368d97..e167154 100644 --- a/f.php +++ b/f.php @@ -248,8 +248,12 @@ if ($cfg['litespeed_workaround']) { $_SERVER['QUERY_STRING'] . '&litespeed_workaround=phase2'); } } -/* Read encrypted file. */ +/* Read encrypted file (Sodium mode). */ elseif ($link['crypted']) { + jirafeau_decrypt_file(VAR_FILES . $p . $link['hash'], 'php://output', $crypt_key); +} +/* Read encrypted file (legacy mode using mcrypt). */ +elseif ($link['crypted_legacy']) { /* Init module */ $m = mcrypt_module_open('rijndael-256', '', 'ofb', ''); /* Extract key and iv. */