| KeyGenMe! |
<html>
<head>
<title>Keygen</title>
<style>
body { font-family: Arial; padding: 20px; }
input, button { padding: 10px; margin-top: 10px; }
#output { margin-top: 20px; font-weight: bold; }
</style>
</head>
<body>
<h2>Keygen Tool</h2>
<input type="text" id="username" placeholder="Enter username">
<br>
<button onclick="generate()">Generate Key</button>
<div id="output"></div>
<script>
// SHA256 function (native browser)
async function sha256(str) {
const buf = await crypto.subtle.digest(
"SHA-256",
new TextEncoder().encode(str)
);
return Array.from(new Uint8Array(buf))
.map(b => b.toString(16).padStart(2, "0"))
.join("");
}
async function generate() {
const username = document.getElementById("username").value;
if (!username) {
alert("Enter username!");
return;
}
const digest = await sha256(username);
let key = "";
for (let ch of digest) {
if (!isNaN(ch)) continue; // skip digit
let index = Math.floor((ch.charCodeAt(0) - 'a'.charCodeAt(0)) / 2);
key += String.fromCharCode('a'.charCodeAt(0) + index);
}
document.getElementById("output").innerText =
"Key: " + key;
}
</script>
</body>
</html> |
2026-04-07 17:38 |