From 46777cd7016b63225ada5ef74d55798c85d0171b Mon Sep 17 00:00:00 2001 From: Gab <24553253+gabrix73@users.noreply.github.com> Date: Mon, 21 Apr 2025 15:11:43 +0200 Subject: Update index.php --- index.php | 732 ++++++++++++++++++++++++++++++++++++++++++++++---------------- 1 file changed, 541 insertions(+), 191 deletions(-) (limited to 'index.php') diff --git a/index.php b/index.php index 8b33ac3..a901260 100644 --- a/index.php +++ b/index.php @@ -1,219 +1,569 @@ - Mail2Usenet Gateway – Production + + Mail2Usenet Gateway - - - - + + + - - -
-

Mail2Usenet Gateway – Production

-
- - - + +
+
+

Mail2Usenet Gateway

+
+ 🌞 + + + 🌙
+
+ +
+ + + +
- -
-

Generate Hashcash Token

-

Client‑side PoW: SHA‑1 with leading hex zeros (6/7/8) to mitigate spam.

- - - -

Generated Token:

-
0
-

Using UTC timestamp (YYMMDDhhmmss) from toISOString().

+
+

Proof-of-Work Token

+ + + + + + +
0
+ +
+
- -
-

Digital Signature (Ed25519)

-

Ephemeral key pair; signature is mandatory and discarded on send.

- - - -

Public Key:

-

Signature:

+
+

Ed25519 Digital Signature

+ + + + + + + + + + + +
+ +
+
- -
-

Send Message to Usenet

-

Includes X-Hashcash and X-Ed25519-Sig headers; max 3 newsgroups.

-
- - - - - - - - - - - -
+
+

Send Message

+ + + + + +
+ + + + + + + + + + + +
+ +
+
Mail2Usenet Gateway © 2025 - Privacy-focused communication tool
+ +
+
+ + +// Handle form field updates for "from" field +document.getElementById('fromName').addEventListener('input', function() { + const email = document.getElementById('hcEmail').value; + if (email) { + document.getElementById('fromFull').value = `${this.value} <${email}>`; + } +}); + - + -- cgit v1.2.3