X-Git-Url: https://git.p6c8.net/jirafeau_mojo42.git/blobdiff_plain/d476bcd5e359b590b36e7372833e0e6ebd419587..f2e7a2cb00bebc22671aa02035242596dbce46de:/f.php?ds=inline 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. */