<?php
// logviewer/tools/hash.php
// Usage: /logviewer/tools/hash.php?p=YourPassword
header('Content-Type: text/plain; charset=utf-8');

$p = $_GET['p'] ?? '';
if ($p === '') {
  echo "Usage: ?p=YourPassword\n";
  exit;
}

echo password_hash($p, PASSWORD_DEFAULT);
