TypeScript kein Syntaxsfehler

This commit is contained in:
ISA
2025-01-27 10:31:11 +01:00
parent 48c9109170
commit 23fcc557e7
6 changed files with 57 additions and 23 deletions

25
pages/generate-hash.tsx Normal file
View File

@@ -0,0 +1,25 @@
// pages/generate-hash.js
import React from "react";
import bcrypt from "bcryptjs";
export default function GenerateHash() {
const password = "Littwin"; // Das Passwort, das du hashen möchtest
const saltRounds = 10; // Die Anzahl der Salt-Runden
// Hash generieren
const hash = bcrypt.hashSync(password, saltRounds);
return (
<div style={{ padding: "20px", fontFamily: "Arial" }}>
<h1>Hash-Generator</h1>
<p>
<strong>Passwort:</strong> {password}
</p>
<p>
<strong>Generierter Hash:</strong> {hash}
</p>
<p>Kopiere den Hash und speichere ihn in deinem Projekt.</p>
</div>
);
}