From 5a03b1b00e17498159a2a694ff7e0dd581b65cfa Mon Sep 17 00:00:00 2001 From: Joe Carstairs Date: Thu, 24 Sep 2026 08:46:12 +0100 Subject: plaintext output for bcrypt.php --- http/public/do/bcrypt.php | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) (limited to 'http') diff --git a/http/public/do/bcrypt.php b/http/public/do/bcrypt.php index 00eda33..3eb1b83 100644 --- a/http/public/do/bcrypt.php +++ b/http/public/do/bcrypt.php @@ -50,13 +50,8 @@ if ($hash === false) { exit; } -header('Content-Type: application/json; charset=utf-8'); +header('Content-Type: text/plain; charset=utf-8'); header('Cache-Control: no-store, no-cache, must-revalidate'); header('Pragma: no-cache'); -echo json_encode([ - 'user' => $user, - 'pass_hash' => $hash, - 'algo' => password_get_info($hash)['algoName'], - 'cost' => BCRYPT_COST, -], JSON_PRETTY_PRINT | JSON_UNESCAPED_SLASHES), "\n"; +echo $user . $hash; -- cgit v1.2.3