Untitled
unknown
plain_text
9 months ago
2.6 kB
16
Indexable
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Symbol โ Number Decrypter</title>
<style>
body {
font-family: Arial, sans-serif;
background: #0d1117;
color: #c9d1d9;
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
height: 100vh;
}
textarea, button {
margin: 8px;
padding: 10px;
border-radius: 6px;
border: none;
font-size: 16px;
}
textarea {
width: 340px;
height: 100px;
}
button {
background: #8957e5;
color: white;
cursor: pointer;
}
button:hover {
background: #9c7ae2;
}
h2 {
margin-bottom: 0;
}
</style>
</head>
<body>
<h2>๐ Symbol โ Number Decrypter</h2>
<p>Paste your cipher key below, then enter symbols (e.g. ! @ # $)</p>
<textarea id="keyInput" placeholder='Paste cipher key JSON here (e.g. {"a":12,"b":4,"c":25,"d":7})'></textarea>
<textarea id="symbolsInput" placeholder="Enter symbols to decrypt (e.g. ! @ # $)"></textarea>
<button onclick="decrypt()">Decrypt</button>
<textarea id="outputText" placeholder="Decrypted numbers will appear here..." readonly></textarea>
<script>
function decrypt() {
const keyText = document.getElementById("keyInput").value.trim();
if (!keyText) {
alert("Please paste your cipher key first!");
return;
}
let cipherKey;
try {
cipherKey = JSON.parse(keyText);
} catch {
alert("Invalid key format. Make sure itโs valid JSON like {\"a\":12,\"b\":4,...}");
return;
}
// The default symbol set corresponding to aโz
const symbols = [
"!", "@", "#", "$", "%", "^", "&", "*", "(", ")",
"-", "_", "+", "=", "{", "}", "[", "]", ":", ";",
"<", ">", "?", "/", "|", "~"
];
// Create symbol โ letter mapping
const symbolToLetter = {};
for (let i = 0; i < symbols.length; i++) {
symbolToLetter[symbols[i]] = String.fromCharCode(97 + i); // aโz
}
const inputSymbols = document.getElementById("symbolsInput").value.trim().split(/\s+/);
let output = "";
for (const sym of inputSymbols) {
const letter = symbolToLetter[sym];
if (letter && cipherKey[letter] !== undefined) {
output += cipherKey[letter] + " ";
} else {
output += "? ";
}
}
document.getElementById("outputText").value = output.trim();
}
</script>
</body>
</html>
Editor is loading...
Leave a Comment