Error: decodeToken is not defined in Header.jsx

This commit is contained in:
ISA
2024-11-15 11:16:02 +01:00
parent 140444d046
commit f619d7b796
9 changed files with 105 additions and 29 deletions

23
pages/generate-hash.js Normal file
View File

@@ -0,0 +1,23 @@
// pages/generate-hash.js
import bcrypt from "bcryptjs";
export default function GenerateHash() {
const password = "admin"; // 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>
);
}