pgaes Verzeichnis Struktur verbessert
This commit is contained in:
25
components/tools/generate-hash.tsx
Normal file
25
components/tools/generate-hash.tsx
Normal 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>
|
||||
);
|
||||
}
|
||||
Reference in New Issue
Block a user