aboutsummaryrefslogtreecommitdiff
path: root/http/public/do/bcrypt.php
diff options
context:
space:
mode:
authorJoe Carstairs <me@joeac.net>2026-09-24 08:46:12 +0100
committerJoe Carstairs <me@joeac.net>2026-09-24 08:46:12 +0100
commit5a03b1b00e17498159a2a694ff7e0dd581b65cfa (patch)
tree2cdd75db573e52c61e9aa2c3380518cae71019c0 /http/public/do/bcrypt.php
parentc491e042bd113bda77440b9a7d9bce3bdfcc906d (diff)
plaintext output for bcrypt.php
Diffstat (limited to 'http/public/do/bcrypt.php')
-rw-r--r--http/public/do/bcrypt.php9
1 files changed, 2 insertions, 7 deletions
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;