aidxnFUN/views/verify.ejs

39 lines
2.7 KiB
Plaintext
Raw Permalink Normal View History

2024-10-12 19:37:27 -04:00
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
2024-12-01 23:34:19 -05:00
<title>❄️ aidxn.fun | verify</title>
2024-10-12 19:37:27 -04:00
<link href="/css/main.css" rel="stylesheet">
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.6.0/css/all.min.css" integrity="sha512-Kc323vGBEqzTmouAECnVceyQqyqdsSiqLQISBL29aUW4U/M7pSPA/gEUZQqv1cwx4OnYxTxve5UMg5GT6L4JJg==" crossorigin="anonymous" referrerpolicy="no-referrer" />
2024-10-12 20:02:35 -04:00
<link rel="preconnect" href="https://fonts.googleapis.com">
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
<link href="https://fonts.googleapis.com/css2?family=Afacad+Flux:wght@100..1000&display=swap" rel="stylesheet">
2024-10-12 19:37:27 -04:00
</head>
2025-03-08 00:29:23 -05:00
<body class="bg-linear-to-br from-slate-900 to-black text-white font-afacad-flux">
2024-10-12 19:37:27 -04:00
<%- include('shards/header.ejs', { req: req }) %>
<header class="flex flex-col items-center justify-center h-[40vh] p-6">
<h1 class="text-5xl font-bold mb-2 text-center">Verify</h1>
<p class="text-lg text-gray-300 max-w-xl text-center mt-3">Let's check if that message really came from me!</p>
</header>
2025-03-08 00:29:23 -05:00
<div class="bg-linear-to-br from-slate-800/80 to-slate-900/80 border border-slate-800 backdrop-blur-md shadow-xl rounded-2xl p-8 mx-4">
2024-10-12 19:37:27 -04:00
<h3 class="text-2xl font-bold mb-4 text-white">Introduction</h3>
<p class="text-slate-300 mb-4">Did I send you a PGP signed message? Let's check it's actually from me! The form below will verify the message was signed by my key.</p>
<p class="text-slate-300 mb-4"><span class="font-bold">Remember</span>, if you have confirmed my key in person, you should always trust that key over this page.</p>
2024-11-13 14:54:53 -05:00
<p class="text-slate-300 mb-4">The key this is being checked against is stored on my server, which can be prone to being hacked. Thus, this is better than nothing, but not the #1 option for verifying a message. As of now, messages are checked by the server, not locally.</p>
2024-10-12 19:37:27 -04:00
<h3 class="text-2xl font-bold mb-4 text-white">Check Message</h3>
2024-11-13 14:54:53 -05:00
<form action="/verify" method="POST" class="space-y-4">
<label for="pgpMessage" class="block text-slate-300">PGP Message:</label>
<textarea id="pgpMessage" name="pgpMessage" class="w-full p-2 bg-slate-800 text-slate-300 rounded-md" rows="10" placeholder="Paste a PGP-signed message here"></textarea>
2025-03-08 00:29:23 -05:00
<button type="submit" class="bg-blue-500 hover:bg-blue-600 text-white font-bold py-2 px-4 rounded-sm">Verify</button>
2024-11-13 14:54:53 -05:00
</form>
<% if (verifyResult) { %>
2025-03-08 00:29:23 -05:00
<div class="mt-4 p-4 rounded-sm bg-slate-800 text-white">
2024-11-13 14:54:53 -05:00
<p><%= verifyResult %></p>
</div>
<% } %>
2024-10-12 19:37:27 -04:00
</div>
<script src="js/main.js"></script>
<%- include('shards/footer.ejs') %>