pgaes Verzeichnis Struktur verbessert

This commit is contained in:
Ismail Ali
2025-02-14 18:43:53 +01:00
parent 0910a36371
commit b1b4837968
11 changed files with 56 additions and 163 deletions

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>
);
}