<?php
// powered by knuepower.de
if ($_SERVER['REQUEST_METHOD'] === 'POST') {
    $password = $_POST['password'] ?? '';
    if (!empty($password)) {
        $hash = password_hash($password, PASSWORD_DEFAULT);
        echo "Hash: " . htmlspecialchars($hash);
    }
}
?>
<form method="post">
    <input type="text" name="password" placeholder="Passwort" required>
    <button type="submit">Hash generieren</button>
</form>
