diff options
| author | Pasha <pasha@member.fsf.org> | 2023-12-17 19:37:05 +0000 |
|---|---|---|
| committer | Pasha <pasha@member.fsf.org> | 2023-12-17 19:37:05 +0000 |
| commit | 551f957d57cb930bfcfd46e763a6556b2e50ec72 (patch) | |
| tree | c6c96c79994bf9be8cb78d2997098f9c5ab034c5 /README | |
| download | gnupg_over_web-551f957d57cb930bfcfd46e763a6556b2e50ec72.tar.gz gnupg_over_web-551f957d57cb930bfcfd46e763a6556b2e50ec72.tar.bz2 | |
initial commit
Diffstat (limited to 'README')
| -rw-r--r-- | README | 50 |
1 files changed, 50 insertions, 0 deletions
@@ -0,0 +1,50 @@ +GNUPG over web + +Copyright (C) 2023 Salahuddin <salahuddin@member.fsf.org> + +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. + +" +<!DOCTYPE html> +function myFunction() { + const socket = new WebSocket("ws://localhost:8765"); + // send data to local websocket to decrypt + // and place plain text locally +} +<body onload="myFunction();"> +... +<div class="GNUPG_OVER_WEB"> +-----BEGIN PGP MESSAGE----- +hQGMAyJ3PpkRYGT1AQv7BTx9T8PpK8kFB5UYfcuhkuvWN1AixXE+12UniO7aRAXz +... +-----END PGP MESSAGE----- +</div> +</body> +</html> +" + +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. + +<div class="GPG_OVER_WEB"> +plain text content. +</div> |
