71 lines
3.2 KiB
HTML
71 lines
3.2 KiB
HTML
<!DOCTYPE html>
|
|
<html lang="it">
|
|
<head>
|
|
<meta charset="UTF-8">
|
|
<title>CryptoSeals - RSA</title>
|
|
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
|
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.0/css/all.min.css">
|
|
<link rel="stylesheet" href="style.css">
|
|
<script src="rsa.js" defer></script>
|
|
</head>
|
|
<body>
|
|
<nav class="navbar">
|
|
<a href="index.html" class="nav-brand">
|
|
<img src="seal1.png" height="80" alt="🦭">
|
|
CryptoSeals
|
|
</a>
|
|
<div class="menu-toggle" onclick="toggleMenu()">
|
|
<i class="fa-solid fa-bars"></i>
|
|
</div>
|
|
<ul class="nav-links" id="nav-links">
|
|
<li><a href="rsa.html"><i class="fa-solid fa-key"></i> RSA</a></li>
|
|
<li><a href="cesare.html"><i class="fa-solid fa-arrow-right-arrow-left"></i> Cesare</a></li>
|
|
<li><a href="team.html"><i class="fa-solid fa-users"></i> Il Team</a></li>
|
|
</ul>
|
|
</nav>
|
|
|
|
<div class="container">
|
|
<h1>Motore RSA</h1>
|
|
<p class="descrizione">Cifra e decifra i tuoi messaggi con lo standard di sicurezza a chiave pubblica. Scegli la dimensione delle chiavi, scrivi e lascia fare alle foche.</p>
|
|
|
|
<div class="crypto-box">
|
|
|
|
<label>Dimensione Chiave RSA</label>
|
|
<select id="keysize">
|
|
<option value="512">512 bit (Solo didattico - Veloce)</option>
|
|
<option value="1024" selected>1024 bit (Test - Bilanciato)</option>
|
|
<option value="2048">2048 bit (Standard - Lenta da generare)</option>
|
|
<option value="3072">3072 bit (Ottima - Mediamente Lenta)</option>
|
|
<option value="4096">4096 bit (Alta sicurezza - Molto lenta)</option>
|
|
</select>
|
|
|
|
<div class="crypto-columns">
|
|
|
|
<div class="crypto-col">
|
|
<label>Testo in chiaro</label>
|
|
<textarea id="plaintext" class="pulse-textarea" placeholder="Scrivi il messaggio segreto che vuoi proteggere..."></textarea>
|
|
<button onclick="encrypt()">🔒 Cifra il messaggio</button>
|
|
</div>
|
|
|
|
<div class="crypto-col">
|
|
<label>Testo Cifrato (Base64)</label>
|
|
<textarea id="ciphertext" placeholder="Il testo protetto apparirà qui..."></textarea>
|
|
<button class="btn-green" onclick="decrypt()">🔓 Decifra il messaggio</button>
|
|
</div>
|
|
|
|
</div>
|
|
<div style="margin-top: 35px;">
|
|
<label>Risultato finale decifrato</label>
|
|
<textarea id="decodedtext" readonly placeholder="Il messaggio originale apparirà qui dopo la decifratura..." style="height: 100px; background-color: #0b0f19; border-color: rgba(16, 185, 129, 0.3); color: #10b981;"></textarea>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<footer>
|
|
<div class="copyright">
|
|
<a href="/privacy-policy/">Privacy Policy</a> |
|
|
<a href="#"><i class="fa-brands fa-github"></i> GitHub</a> <br><br>
|
|
© <span id="year"></span> CryptoSeals Team
|
|
</div>
|
|
</footer>
|
|
</body>
|
|
</html> |