From 551f957d57cb930bfcfd46e763a6556b2e50ec72 Mon Sep 17 00:00:00 2001 From: Pasha Date: Sun, 17 Dec 2023 19:37:05 +0000 Subject: initial commit --- README | 50 ++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 50 insertions(+) create mode 100644 README (limited to 'README') diff --git a/README b/README new file mode 100644 index 0000000..02695fb --- /dev/null +++ b/README @@ -0,0 +1,50 @@ +GNUPG over web + +Copyright (C) 2023 Salahuddin + +It allows user to use gnupg over plain web. +=========================================== + + user ---------- public key ----------------> + | webserver + v + user <-----HTTP data with GNUPG tag(s)------ + + + browser -------- encrypted data --------------> + | local websocket + v (gpg_websocket.py) + browser <------- plain text data -------------- + + +Example: + +1. users browser receive the following data. + +" + +function myFunction() { + const socket = new WebSocket("ws://localhost:8765"); + // send data to local websocket to decrypt + // and place plain text locally +} + +... +
+-----BEGIN PGP MESSAGE----- +hQGMAyJ3PpkRYGT1AQv7BTx9T8PpK8kFB5UYfcuhkuvWN1AixXE+12UniO7aRAXz +... +-----END PGP MESSAGE----- +
+ + +" + +2. web browser will send encrypted data to local websocket server "gpg_websocket.py". +Local websocket server will decrypt send back plain text data. + +3. browser view. + +
+plain text content. +
-- cgit v1.2.1