· 6 years ago · Apr 30, 2019, 06:22 AM
11.config.php
2[...]
3$encrypt_method = "AES-256-CBC";
4$secret_key = 'costamcostam';
5$iv = 'costamcostam2';
6$mykey = hash('sha256', $secret_key);
7[...]
8
92.run.php
10include 'config.php';
11[...]
12function executeQuery() {
13 $ch = curl_init();
14 curl_setopt($ch, CURLOPT_URL, 'http://demoserwer.com/api/&loginName='.rawurlencode($_POST['user']).'&password='.rawurlencode(openssl_decrypt(base64_decode($_POST['pass']), $encrypt_method, $mykey, 0, $iv)).'');
15 [...]
16}
17[...]
18
193.Błędy
20
21Notice: Undefined variable: encrypt_method in /var/www/html/run.php on line 14
22Notice: Undefined variable: mykey in /var/www/html/run.php on line 14
23Notice: Undefined variable: iv in /var/www/html/run.php on line 14
24Warning: openssl_decrypt(): Unknown cipher algorithm in /var/www/html/run.php on line 14