-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathargon-check.php.lock
More file actions
21 lines (21 loc) · 1.07 KB
/
Copy pathargon-check.php.lock
File metadata and controls
21 lines (21 loc) · 1.07 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
<?php
/**
* SayNoMore - argon-check.php (shipped as argon-check.php.lock)
* Created by Leproide - https://github.com/Leproide/SayNoMore
*
* Distributed under GNU GPL v2.
* No warranty provided.
*
* Temporary diagnostic probe: rename to argon-check.php, open in the browser
* to verify the PHP runtime serving the app, then DELETE it immediately.
*
* Since v6 secret encryption runs in the browser (Web Crypto, AES-256-GCM):
* - REQUIRED server-side: Argon2id (password hashing) + random_bytes (CSPRNG)
* - OPTIONAL: OpenSSL, used only by the email notifications over SSL/STARTTLS
* - AES-256-GCM is NOT used server-side anymore (verified in the browser).
*/
header('Content-Type: text/plain; charset=utf-8');
echo 'PHP ', PHP_VERSION, ' (', PHP_SAPI, ")\n";
echo 'Argon2id (required): ', (defined('PASSWORD_ARGON2ID') ? 'OK' : 'MISSING'), "\n";
echo 'random_bytes (required): ', (function_exists('random_bytes') ? 'OK' : 'MISSING'), "\n";
echo 'OpenSSL (email TLS only): ', (extension_loaded('openssl') ? 'OK' : 'absent (fine if you do not use email)'), "\n";