Fixed bug in decrypt.php

这个提交包含在:
Norman 2020-12-05 17:15:03 -08:00
父节点 5d0abf9db9
当前提交 a8a7fb6b5f
共有 1 个文件被更改,包括 1 次插入3 次删除

查看文件

@ -1,7 +1,5 @@
<?php
require_once 'config.inc.php';
// Load private key
$privKey = base64_decode(file_get_contents("key.private"));
$pubKey = base64_decode(file_get_contents("key.public"));
@ -18,7 +16,7 @@ foreach ($encrypted_submissions as $encrypted) {
$decryptedData = sodium_crypto_box_seal_open(base64_decode($parts[1]), $keypair);
// Parse exported variable
eval('$vars = '.$decryptedData.';');
$vars = json_decode($decryptedData, true);
// Print :)
foreach ($vars as $k => $v){