From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp12.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms5.migadu.com with LMTPS id eJruEl8JpWJh7AAAbAwnHQ (envelope-from ) for ; Sat, 11 Jun 2022 23:30:07 +0200 Received: from aspmx1.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp12.migadu.com with LMTPS id CGHKEl8JpWKh4gAAauVa8A (envelope-from ) for ; Sat, 11 Jun 2022 23:30:07 +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 C8873DAFA for ; Sat, 11 Jun 2022 23:30:06 +0200 (CEST) Received: from localhost ([::1]:37442 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1o08gH-0005Jm-4p for larch@yhetil.org; Sat, 11 Jun 2022 17:30:05 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:42834) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1o08fd-0005Jd-5e for emacs-orgmode@gnu.org; Sat, 11 Jun 2022 17:29:25 -0400 Received: from mail-dm6nam11olkn2022.outbound.protection.outlook.com ([40.92.19.22]:8288 helo=NAM11-DM6-obe.outbound.protection.outlook.com) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1o08fY-0007nX-9R for emacs-orgmode@gnu.org; Sat, 11 Jun 2022 17:29:24 -0400 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=NFTGUHvSYZFrzKJ3dJQtGUBQo52y4oCiO7or79K5iMjgHWoqeo+KPnrHNpgdNC95JeSZEVXlYvKzjnnupcCQrQx9TZ0XaBZXG/PbN2VbDKRC6FieG5x2oKzWU3jb30Ac//r04RMpHRMF7DB0xLMaeAlIDT6EBt8cHccjNiQqQeW+XfAgiC9wx/4faT7aeMZy0fE2zNk9WKRs88iaaCrUwAiul+VmJrHQCNTfxEciTdYASl9T/USjhldqznmvd7+txI8jZUZxnHciUowRQsHojTPJwfJCSb2u3oOfX+WXJTHLPf8CCsZm6Gqi7pd9Wy/y5JaFDcMEbSMr52Gy1l1aTQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=Nsi6Hd0x2UVPPLaZ7S72lmpC5cJNwBsyrPdl1fsV17w=; b=AMOU5CcaeHBX+Pu0bcs2VDr7hhNP1jijjE5WdH/ZO9unyDvcv5/nVEcc5AEbyiyYKTwUD+ilhczzB4PVvB4BkELgiRmQqjOwzQJ/nwSXDF/XiDxf1nyK70QN8zzNBb6Q+5AAqyWAUWlxCYZ1FsS9QtBBCYhOjKrcu/1u3CEQLMXFah/TWiWt7qOCx9B/C8XSyRnSU+Pm/5gL8QHmyc9FK6kabJrxqZENN+WDrUCquqbrLqwOvE+IfNwifX86alq4HsqwQ/W7cPoXiecu+HcZVvV0iK8LcdNHw42cMg0zIhMbQ0weEtuwFZA+fKeQGpl8rmeEJMXFjV6OVsVYAnwVog== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=none; dmarc=none; dkim=none; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=outlook.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=Nsi6Hd0x2UVPPLaZ7S72lmpC5cJNwBsyrPdl1fsV17w=; b=AkIqfGmI4OioLW65mH+Ut9+Lc84It5kKmh8mFjhv4lSUiJxlVEsiuC54pGnJ8qBS16c2vX0sEKrH/CC6uLv4n9w9qVbj9/0/jCbvoniFzotofz94CKcnlrFEHKpl6duBMtYz8BGLJuqyKPf+eFrHEkQ4OwFEQZWlAUkSbCaePij3f+NM/jSspmLl9tKS6uVld7+P5iLL7Z2ddLtjEbU5wRoRHJZZNef0SWPCfDaXw0WbbjEVgBFofWGicw/7geFZ8lfcQ2Uwr3AhOLywIuzGr+1GEHo0HKq57s4j1TQUHNRkG5EqHC3EC31oKcOEdbVyMwdDuYNyoUzHpM9W2VXqzg== Received: from SJ0PR03MB5455.namprd03.prod.outlook.com (2603:10b6:a03:27b::11) by MW4PR03MB6491.namprd03.prod.outlook.com (2603:10b6:303:123::19) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5332.14; Sat, 11 Jun 2022 21:29:17 +0000 Received: from SJ0PR03MB5455.namprd03.prod.outlook.com ([fe80::7c01:f3c4:11c6:4050]) by SJ0PR03MB5455.namprd03.prod.outlook.com ([fe80::7c01:f3c4:11c6:4050%8]) with mapi id 15.20.5332.017; Sat, 11 Jun 2022 21:29:17 +0000 From: David Masterson To: Tim Cross Cc: emacs-orgmode@gnu.org Subject: Re: org-crypt ? References: <871qvvesqh.fsf@gmail.com> Date: Sat, 11 Jun 2022 14:29:15 -0700 In-Reply-To: <871qvvesqh.fsf@gmail.com> (Tim Cross's message of "Sat, 11 Jun 2022 13:35:26 +1000") Message-ID: User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.1 (gnu/linux) Content-Type: text/plain X-TMN: [pFR2TK+fQ+GA1lzu5oV1RBLFf79PYz2rg7BLRKhyuKicCY6cV88vD6A9l+qgb87L] X-ClientProxiedBy: BYAPR07CA0058.namprd07.prod.outlook.com (2603:10b6:a03:60::35) To SJ0PR03MB5455.namprd03.prod.outlook.com (2603:10b6:a03:27b::11) X-Microsoft-Original-Message-ID: <87fskaubx0.fsf@gmail.com> MIME-Version: 1.0 X-MS-Exchange-MessageSentRepresentingType: 2 X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 7ee01ad9-58f3-4f03-1aa2-08da4bf1703e X-MS-TrafficTypeDiagnostic: MW4PR03MB6491:EE_ X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: Chp40IoVt9QwLG5XJOkT2oKc8CN++wan9RZIhFVaQ3hKyOld1nufZlZWnoue8nngrSRaepFB0t/CpQa2d/xbndpuMPKxHWbpyeC40Z70wwny5YuupabdGrstDKWSkn+BK+Rzx+rjcc/Ebj572PcVinZH+5mXh6rP9UPyXnfjUuAYYqHu2bEk7yxzsXjjmMWoSMYlDwLBEn9cyInjev+wfZP/NfeHHNyLN1bRKnSCmsMI12KUP7e/UmkqieGZPOCxs14rnRvBkdglSQrcYW5yzpfJNb1Ib3JO9ZF47gEOPJjaYTa05gv0M+fVPA0Z64ch/lIS/HMoS2ixzOZ85ZAiMHK3KJ1YSe52n/oTFUY//fKn5gvq+isHqXcSMOKxyeAM7vN8Sh288BiadZrvj/sSsIxSty1GzZJagnLfw3vZbGgVgkevSViwkVGfPE3DMvmsS1/QS46LzkE9udlisT6tYFA9c+SKvG1+j5JWXk7CS3eLD9nfaEYimoFMhyYNzGJVPuPRgiRbbuQXK1GEiwVcDVIyxYDyV6xsmXZrxtlS8V5nlYkyt6K+4MQu6hfZG08Jj2V5QkCDRYPzFRN51YFnzQ== X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?us-ascii?Q?L1sIRju8yj6QSQuQC6EpwmYP5+aNfTg6ZNgLvUcasqF8iiNUzqQwgjx+y+57?= =?us-ascii?Q?OKtC/5U/5eOWWnpSkmBi3WtrO1raHm1wof4yTh2WUF9lLK8eQSTxkOGSp9u3?= =?us-ascii?Q?dE/rIjlz+L5IZLfgec6g7Zvn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?us-ascii?Q?3xDcq6A3NpLpIsoDe7vPBFPZGMNacEdfjDp3QLMJGwH2hmr2lv1afRWSKxGb?= =?us-ascii?Q?w23UpvSnb6oAB/5YOCX42Qi61qSuEfkPV/TprEkHJquESdu2YeM0boTOZnet?= =?us-ascii?Q?UvKKOH6SSjU/tKm3g0jCysfUVkRqYlpqEAv6SIropzq0ubBuvwf8wNjpY5J/?= =?us-ascii?Q?hgyz0AQRDsC6bIVP6slg7wBixAfNGVae2H1XEI8GRnVXZTkMHw7t/xnOd9k/?= =?us-ascii?Q?ce7D0SvtasKWi367EvAYDz8dfSVXLb90kTdLh0+Xd1u29zB4W7WYS40G5l23?= =?us-ascii?Q?5whP1vVdAynRbZ7BokuPVCkjdpymq1aNbByGIvK/HI+lAu0s1Cjak+plCTct?= =?us-ascii?Q?FyJqmlIbrM61m9u9UltJstJLYcw6Avy3n8S1f7o9fANiDOJY2F/NCCE/L1wk?= =?us-ascii?Q?1J3s6EC65XXxRPDzq5wJpELKSSxq33bZvsPK6jDI09OT37jmO86IGmxC1oXx?= =?us-ascii?Q?RNFydyGfTewm0kOi6JKSPXEBr0rj6mDp1VgSTN/cg4Arsaznet8FZCnkTQ?= =?us-ascii?Q?=3D=3D?= X-OriginatorOrg: outlook.com X-MS-Exchange-CrossTenant-Network-Message-Id: 7ee01ad9-58f3-4f03-1aa2-08da4bf1703e X-MS-Exchange-CrossTenant-AuthSource: SJ0PR03MB5455.namprd03.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 11 Jun 2022 21:29:17.0540 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 84df9e7f-e9f6-40af-b435-aaaaaaaaaaaa X-MS-Exchange-CrossTenant-RMS-PersistedConsumerOrg: 00000000-0000-0000-0000-000000000000 X-MS-Exchange-Transport-CrossTenantHeadersStamped: MW4PR03MB6491 Received-SPF: pass client-ip=40.92.19.22; envelope-from=outlook_98C99531806B1C22@outlook.com; helo=NAM11-DM6-obe.outbound.protection.outlook.com X-Spam_score_int: 6 X-Spam_score: 0.6 X-Spam_bar: / X-Spam_report: (0.6 / 5.0 requ) BAYES_00=-1.9, DKIM_ADSP_CUSTOM_MED=0.001, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_EF=-0.1, FORGED_GMAIL_RCVD=1, FREEMAIL_ENVFROM_END_DIGIT=0.25, FREEMAIL_FORGED_FROMDOMAIN=0.249, FREEMAIL_FROM=0.001, HEADER_FROM_DIFFERENT_DOMAINS=0.249, NML_ADSP_CUSTOM_MED=0.9, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=no 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=2; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1654983006; 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=Nsi6Hd0x2UVPPLaZ7S72lmpC5cJNwBsyrPdl1fsV17w=; b=sNUOQRZ6v/zfQiKYoQ71MNIsSn6lM2AnOT98TCBXs96zcqRL0NQgnKI5/yHhWoJVmaiVbX h6PU2mO2U7XwoCvD6HOi83LHjGEn18hIBEjHLK2okZuR96q7MP0tFwni+NOm4INsObAi1b fmtb3RQa0vf8z4w4L3UFlaUEZVjxNb5bEql+gkM7wtY15UJK2keXEonWHnZCiaa4Utn8LQ RLqQMk9o/IX0aiU22AnUeBSjTTslmrIB+mmyaZQVcreiMRzL5vZBL/q6r3qt9w+BK4BbzQ BguyBsauHKj0pE/YZjtr849vGAz613e1ZfWhF6caCKn4WTu1GlDp1xwcBhaC/w== ARC-Seal: i=2; s=key1; d=yhetil.org; t=1654983006; a=rsa-sha256; cv=pass; b=nTGJfSHSUR+a5vmiu084JaASeVqkHVnt00zCM00pA6R4KYceO//5Lq5T+ztuE2ZgRiK1Qu Hs0ma6jd4Xrn17yHACkwblqOWFFx2L1+Lm7iWOKwj+FSKh+IKXro+f1I2Ih5Dp0nAlytQz 3Z0sneU1B2xDZ3X6kfsxsp8uR0MR23L7h7dqWD5OICZ7mVmIMgJ8sQX/w+LyB6dwf3Wnc9 ypxp8gEh9IEkYAOf87JbE+JMrLC1yCnwhsNkK0nCeT7ER3UH3R/N7svSqtRe01mcNQkCQK C5HuM2Ki6dA5vKcMubZeP3VkV/mJDvlT1P/iV+nUJEPexhwIxSf+Kw58kdxq8w== ARC-Authentication-Results: i=2; aspmx1.migadu.com; dkim=pass header.d=outlook.com header.s=selector1 header.b=AkIqfGmI; arc=pass ("microsoft.com:s=arcselector9901:i=1"); dmarc=fail reason="SPF not aligned (relaxed), DKIM not aligned (relaxed)" header.from=gmail.com (policy=none); 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.08 Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=outlook.com header.s=selector1 header.b=AkIqfGmI; arc=pass ("microsoft.com:s=arcselector9901:i=1"); dmarc=fail reason="SPF not aligned (relaxed), DKIM not aligned (relaxed)" header.from=gmail.com (policy=none); 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: C8873DAFA X-Spam-Score: -4.08 X-Migadu-Scanner: scn0.migadu.com X-TUID: PtPPqvuXNsHX Tim Cross writes: > David Masterson writes: > >> I think I've gotten org-crypt working, but I think some things are not >> making sense (it might be just me): >> >> 1. I've set org-crypt-key to nil (symmetric encryption). >> 2. Can I use a different encryption key for each encrypted paragraph? >> 3. Does org-encrypt only ask for the key the first time? >> 4. Does org-decrypt only ask for the key the first time? >> 5. How do they know where to get the password when they don't ask? >> 6. Shouldn't org-crypt docs in org manual have examples? >> Does this make sense -- I think I'm messing something up. > > Warning: I have not used org-crypt for many years. These days, I just > use a .org.gpg extensions and symmetrically encrypt the whole file. > However, I think I can probably answer some of your questions - Hmm, two questions that this brings up: 1. Do you access your files on (say) iPhone? 2. Do you store your files in Git (say Github)? >> 2. Can I use a different encryption key for each encrypted paragraph? > > According to the manual - > > No, not with symmetric encryption. I think this can only work with > asymmetric encryption. This needs to be spelled out better. > If your using symmetric encryption, you typically just have one key for > all the data within the file. From the gnuPG perspective, this is just > encrypted text. It does not 'know' about different paragraphs. To have > different encryption with each paragraph, you would need to specify > different keys and there is no mechanism to do that with symmetric > encryption only asymmetric. org-(en/de)crypt ?? Hmm, you're suggesting you don't use org-(en/de)crypt. The manual doesn't spell out very well how to do that. Where do you put your key for symmetric encryption? > What is your use case where you need multiple symmetric encryption keys > in one file? One broken key doesn't give up the whole file. >> 6. Shouldn't org-crypt docs in org manual have examples? > > 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. -- David Masterson