From bd17cdd68d2ef72106ea3ce6deea21d1256c6eb3 Mon Sep 17 00:00:00 2001 From: Vlad Doloman Date: Mon, 6 Jul 2026 12:58:21 +0300 Subject: [PATCH] fix Cryptgeon protocol and add CA passphrase / external config resolution Cryptgeon's real protocol (verified against upstream occulto/frontend/backend source) never matched what create_note() sent: it used a SHA-256-derived key instead of the raw one, a single-blob ciphertext instead of the delimited AES-GCM--nonce--ciphertext format, an empty meta field instead of a JSON string, and a hash-bang URL instead of the real /note/# route - notes uploaded fine but were undecryptable in the browser. Also adds CA_PASSPHRASE auto-detection/prompting ("" auto-detects an encrypted CA key and prompts, "!empty"/"!ask" opt out of/force the prompt) and an external .conf file (--config / CONFIG_PATH /