From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp10.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms5.migadu.com with LMTPS id +P1yN1xDpWLvRgEAbAwnHQ (envelope-from ) for ; Sun, 12 Jun 2022 03:37:33 +0200 Received: from aspmx1.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp10.migadu.com with LMTPS id CPWANlxDpWI+cgAAG6o9tA (envelope-from ) for ; Sun, 12 Jun 2022 03:37:32 +0200 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id 860203E5F7 for ; Sun, 12 Jun 2022 03:37:32 +0200 (CEST) Received: from localhost ([::1]:44302 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1o0CXj-0004sL-JI for larch@yhetil.org; Sat, 11 Jun 2022 21:37:31 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:35828) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1o0CX9-0004s7-QG for emacs-orgmode@gnu.org; Sat, 11 Jun 2022 21:36:55 -0400 Received: from mail-pf1-x42b.google.com ([2607:f8b0:4864:20::42b]:38658) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1o0CX8-0005fo-4U for emacs-orgmode@gnu.org; Sat, 11 Jun 2022 21:36:55 -0400 Received: by mail-pf1-x42b.google.com with SMTP id e11so2755782pfj.5 for ; Sat, 11 Jun 2022 18:36:53 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=from:to:cc:subject:in-reply-to:references:date:message-id :mime-version; bh=vHBQj79KMHnRp250uCPR98V4GcQgzuyLcTbHmyoU8mk=; b=I77ny71v9nmrL8KnkfuQGIqxPdiGT2F2QvN9kQY6X+tXCY+KXRbIx2fDuqlWfGiU3K htzXLBesjBckBXS+2uza/uCvzgejE9mdz7D+nhiGY7zIbLQwQ51f/UW78VM1zXbIYxoc tl6QZCT1ljPIR5121eCHAINO5BVWuH+xEo0x5EDHzZ77g3M7lgTFYPM4WchgTRXVqMQc NxloXZELP/UexOAueaNezqmULO4lZvCIsBYSIHi1lHs0bI4Si3TLdw+j8lDM0J3nNJYD 0A/VMW7YQE+lUZXctmh+xKorlK86UvpvO+gZiRmcvtMok0mDOZPM/efiqT87DIvd1hY5 YcVw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:in-reply-to:references:date :message-id:mime-version; bh=vHBQj79KMHnRp250uCPR98V4GcQgzuyLcTbHmyoU8mk=; b=iVf2DcrRTsfyfLPKH9nz7j9d1MG5Vs6Ip+iRBSycy/IZf31HwUElznkPEiW1SBuS3y msx/8YqSPJiYcR4v1APoYJlNcY40DqgWdUUdyoUPEQRhnSyB75RPnhQUrV1H79fk10Bd ikrQfx8Qgd1Z9OJEUwX6+Xkr7KvPOIk4xv7gsn5eKiOvJWHi9B762R4bi2umoQmsF7rL ekVIUaE4BxgAiGFsp9wfp9BRBc5/bSzw1hk4Hj0R5dNXxU+m1kfqchLuUQ83KZqnTR/I xlRcwCLY75CBbjgUpTDaMnPQmR1zAZ6MaKc2ifFklYenN475b58Qt05oeYiyxsYIzRo/ Reow== X-Gm-Message-State: AOAM5339oQYiBKkHYXvBtpsbS+i1SyxriACrWxcqSx9a0N5UPKSMFl2B ofkyCpzZLAjlDcwtugAskjQ= X-Google-Smtp-Source: ABdhPJzdohho6xmGut0p2dV4dXSsuV6uHNgxPA6DXLwmep8uOS/f+4XOQ/Bbd6LaxmkmmalqiO9vMg== X-Received: by 2002:a05:6a00:cc7:b0:51c:22b:b657 with SMTP id b7-20020a056a000cc700b0051c022bb657mr38682441pfv.56.1654997812608; Sat, 11 Jun 2022 18:36:52 -0700 (PDT) Received: from localhost ([64.32.23.62]) by smtp.gmail.com with ESMTPSA id w2-20020a62c702000000b0051c03229a2bsm2235846pfg.21.2022.06.11.18.36.51 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 11 Jun 2022 18:36:52 -0700 (PDT) From: Ihor Radchenko To: Tim Cross Cc: David Masterson , emacs-orgmode@gnu.org Subject: Re: org-crypt ? In-Reply-To: <871qvuy8vn.fsf@gmail.com> References: <871qvvesqh.fsf@gmail.com> <871qvuy8vn.fsf@gmail.com> Date: Sun, 12 Jun 2022 09:37:31 +0800 Message-ID: <87zgiiach0.fsf@localhost> MIME-Version: 1.0 Content-Type: text/plain Received-SPF: pass client-ip=2607:f8b0:4864:20::42b; envelope-from=yantar92@gmail.com; helo=mail-pf1-x42b.google.com X-Spam_score_int: -18 X-Spam_score: -1.9 X-Spam_bar: - X-Spam_report: (-1.9 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_ENVFROM_END_DIGIT=0.25, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: emacs-orgmode@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+larch=yhetil.org@gnu.org Sender: "Emacs-orgmode" X-Migadu-Flow: FLOW_IN X-Migadu-To: larch@yhetil.org X-Migadu-Country: US ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1654997852; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type:in-reply-to:in-reply-to: references:references:list-id:list-help:list-unsubscribe: list-subscribe:list-post:dkim-signature; bh=vHBQj79KMHnRp250uCPR98V4GcQgzuyLcTbHmyoU8mk=; b=QTAsc3l2w0RekagXUsWqhujLtz0SgJxqyb/mu6NNowYuUfHXhvXAmNZ+kF97zeNNsdlS4I MIScpRso6o43N5Ot017ftJwveQNICZBslMJYp0xHPgG8Eg0pTITplWo1xmemvevWQsUTb4 2KY7ov44124A8jSqaECF2jVu5KoA5DmjusQuZ4Wtd34mG+0TfK4xK+Fv2gv3AMHVMIFvhA 9sElBg9C4oy4+NlmorcZIC1xScwk5rXcJyfl0Hj3TSNGNZO+CFKmdNuW/i685HyB76iuWq PMKqiap4Us8ASccNeoZFFhZKW8g+cNeeLjOjzOrJ303CbT/mgSoQHjtXvQpKCg== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1654997852; a=rsa-sha256; cv=none; b=djpmxEEQkApyfKPDc5OEenswSjL/u8hhaD93LKmQeM2QiF7mERLCcfdIqNd0rTdkpcXDTh VEfiCYF/qRT4A6P6LKkIeeYLe9gdoMnUl6PEpUrgxUk07mcU9pyPDCCSIdW/aQ/VqWCnoY Y6sKoWco7jy56YyKEZH9Z83vi4TUaQw7gDT60Uy5nquwzrgrWQBJi/lGNoyYtY6TJE7YkJ LWiz2uXxx3Aj7Dvpn+NpBMweWFOC9dDr3Dm3M66+7nYWyBBGPkrtoQpB/BWiNbjHc4JB/+ eZmOvwt30L7pYMv0E7AOKstbi61cz9UfsqU1I7hyvs8o/NkQDTOLSxCzrEjkLQ== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20210112 header.b=I77ny71v; dmarc=pass (policy=none) header.from=gmail.com; spf=pass (aspmx1.migadu.com: domain of "emacs-orgmode-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="emacs-orgmode-bounces+larch=yhetil.org@gnu.org" X-Migadu-Spam-Score: -4.28 Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20210112 header.b=I77ny71v; dmarc=pass (policy=none) header.from=gmail.com; spf=pass (aspmx1.migadu.com: domain of "emacs-orgmode-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="emacs-orgmode-bounces+larch=yhetil.org@gnu.org" X-Migadu-Queue-Id: 860203E5F7 X-Spam-Score: -4.28 X-Migadu-Scanner: scn0.migadu.com X-TUID: +15ZqeoJnlEN Tim Cross writes: > Ihor's response to this indicates I'm incorrect here. As I stated > earlier, it has been a long time since I used org-crypt, so I'd trust > his advice more. However, from a technical perspective, I don't > understand how gnupg or org-crypto can prompt to get the different keys > and know which chunk to apply which key to, but that is my limited > technical expertise more than anything else. With asymmetric encryption, > you specify the key name, so it knows which key belongs with each > encrypted chunk. I don't see in the code how this is handled for > symmetric encryption where no key name is specified. If you run M-x org-decrypt-entry, the prompt will be for that entry. It is up to the user to figure out which key is the key to be used there. If you run M-x org-decrypt-entries, it simply runs org-decrypt-entry on each encrypted headline appearing in the buffer. From top to bottom. No indication will be done about which headline is being processed at any given point. The user may need to count. Of course, the last scenario is not very user-friendly, but I doubt that many users really use different symmetric encryption keys on different headings in a single file. Nobody bothered enough to implement a more verbose prompt. >>> Probably, though I don't know what else you would put in there which >>> isn't already there. Feel free to supply a PR or patch once you have >>> worked it out. However, as noted in the commentary section, org-crypt.el >>> is really a very light-weight wrapper around functions in epg.el, so >>> likely the first place to start when looking for documentation and >>> examples is the epa/epg/easyPG manual >> >> Not good at writing these days, buy I'll consider. > > Please do. Often the best documentation comes from end users rather than > developers. The developer is often too close to the code, which makes it > harder for them to appreciate what users don't understand/know. For a > user, the challenges they encounter are often 'fresher' and puts them in > a better place to explain things. People on the list will provide > feedback to help clarify and improve what you write. Fully agree. It is too easy to skip "obvious" things in documentation when you know ins and outs of the code. Best, Ihor