From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.devel Subject: Re: Storing sensitive data indefinitely in variables or buffers: Whether and how to fix? Date: Thu, 01 Jun 2023 10:33:18 +0300 Message-ID: <831qiveiwx.fsf@gnu.org> References: <87fs7dnd1u.fsf@localhost> <6503151d-13be-f299-24a2-76bb9d6fecc8@alphapapa.net> <83h6rse2zb.fsf@gnu.org> <871qivd6ek.fsf@localhost> <83353bejwi.fsf@gnu.org> <87v8g7bpxo.fsf@localhost> Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="5998"; mail-complaints-to="usenet@ciao.gmane.io" Cc: adam@alphapapa.net, emacs-devel@gnu.org, jschmidt4gnu@vodafonemail.de To: Ihor Radchenko Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Thu Jun 01 09:33:17 2023 Return-path: Envelope-to: ged-emacs-devel@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1q4co9-0001J9-3r for ged-emacs-devel@m.gmane-mx.org; Thu, 01 Jun 2023 09:33:17 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1q4cnU-0001mY-N1; Thu, 01 Jun 2023 03:32:36 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1q4cnT-0001mC-5n for emacs-devel@gnu.org; Thu, 01 Jun 2023 03:32:35 -0400 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1q4cnS-0007Vc-Ez; Thu, 01 Jun 2023 03:32:34 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=References:Subject:In-Reply-To:To:From:Date: mime-version; bh=tiwuWj+VWvuNUqOosP7JZfvDWLFz9dGfv0loB253gKc=; b=evqjLdmmhtGn xdlNjBuASzbX5SU8Dw3lNS1a9yhLueM8gCXJi5jVMy7N+JA3eqG6vht+syXtjEeUk2Z2ozYnJ05Dl L62M4HpuPB2gpF1HLbiCHWBLNuVNizSBJCC0SB43r2DmulhrIKn/BEtw95MNOeNmrLmSGIqwxEBI+ swDcHbY+1OeailUcQSnl0UvHcREBRqXzLRFFyCCzOmSYLLe9rUFBZMFdYJSz0oi17kqWudqiQZA+G 4mULyQiziBmMDhHTAlcYtK3fT87pb09z94cktTlRy6/7abmaErBQpA8hyfnPB7GQPVf3l3Y6mdRqy rkjzUV5qYnlpDn5ocx5Evw==; Original-Received: from [87.69.77.57] (helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1q4cnR-0003ey-UO; Thu, 01 Jun 2023 03:32:34 -0400 In-Reply-To: <87v8g7bpxo.fsf@localhost> (message from Ihor Radchenko on Thu, 01 Jun 2023 07:29:55 +0000) X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.devel:306492 Archived-At: > From: Ihor Radchenko > Cc: adam@alphapapa.net, emacs-devel@gnu.org, jschmidt4gnu@vodafonemail.de > Date: Thu, 01 Jun 2023 07:29:55 +0000 > > > ... Cryptography, by contrast, is hard, so > > we should use industry-strength implementations by experts for that, > > and I think GnuTLS is a good candidate for that part, especially since > > Emacs without GnuTLS is severely limited anyway (so we could assume > > "almost everyone" have it). > > I agree. > Is Emacs built with GnuTLS support by default? GnuTLS will be compiled in by default if it's available, yes. > Another question about encryption is which secret should be used? > Should it be configurable by users? Should it be the same for the whole > secure storage? More granular? May encryption be disabled by users? This should probably be controlled by some user option.