* New package for NonGNU ELPA : totp-auth
@ 2024-02-05 15:35 Vivek Das Mohapatra
2024-02-06 10:04 ` Philip Kaludercic
` (2 more replies)
0 siblings, 3 replies; 15+ messages in thread
From: Vivek Das Mohapatra @ 2024-02-05 15:35 UTC (permalink / raw)
To: emacs-devel
[-- Attachment #1: Type: text/plain, Size: 889 bytes --]
Hi - I've recently made a package that implements RFC6238 TOTP and was
wondering if nongnu elpa would consider carrying it:
totp-auth.el - Time-based One Time Password support for emacs
This package generates RFC6238 Time-based One Time Passwords
(in other words, what Google Authenticator implements)
and displays them (as well as optionally copying them to
the clipboard/primary selection), updating them as they expire.
It retrieves the shared secrets used to generate TOTP tokens
with ‘auth-sources’ and/or the freedesktop secrets API (aka
Gnome Keyring or KWallet).
You can call it with the command ‘totp-auth’, ie:
M-x totp-auth RET
You can tab-complete based on the label of the secret.
Depending on the setting of ‘totp-auth-display-token-method’ the
TOTP token will be displayed (and kept up to date) either in
an emacs buffer or a freedesktop notification.
[-- Attachment #2: 0001-Add-the-totp-auth-package-and-its-dependency-base32.patch --]
[-- Type: text/x-patch, Size: 1750 bytes --]
From dd15c0496cd530fb1bd18e7a79a827e76bb29a57 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Vivek=20Das=C2=A0Mohapatra?= <vivek@collabora.com>
Date: Mon, 5 Feb 2024 15:19:34 +0000
Subject: [PATCH] Add the totp-auth package and its dependency (base32)
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
This package generates RFC6238 Time-based One Time Passwords
(in other words, what Google Authenticator implements)
and displays them (as well as optionally copying them to
the clipboard/primary selection), updating them as they expire.
It retrieves the shared secrets used to generate TOTP tokens
with ‘auth-sources’ and/or the freedesktop secrets API (aka
Gnome Keyring or KWallet).
---
elpa-packages | 8 ++++++++
1 file changed, 8 insertions(+)
diff --git a/elpa-packages b/elpa-packages
index 1f9a16311c..8ed3955547 100644
--- a/elpa-packages
+++ b/elpa-packages
@@ -49,6 +49,10 @@
(autothemer :url "https://github.com/jasonm23/autothemer.git"
:readme "README.md")
+ (base32 :url "https://gitlab.com/fledermaus/totp.el"
+ :ignored-files ("totp-auth*.el" "Makefile" "*.md" "*.html" "tests" "README")
+ :version-map (("0.2" "1.0" "v1.0")))
+
(bash-completion :url "https://github.com/szermatt/emacs-bash-completion"
:readme "README.md")
@@ -760,6 +764,10 @@
(toc-org :url "https://github.com/snosov1/toc-org.git"
:ignored-files ("COPYING" ".travis.yml" "toc-org-test.el"))
+ (totp-auth :url "https://gitlab.com/fledermaus/totp.el"
+ :ignored-files ("base32.el" "Makefile" "*.md" "*.html" "tests")
+ :version-map (("0.4" "1.0" "v1.0")))
+
(treeview :url "https://github.com/tilmanrassy/emacs-treeview"
:readme "README.md"
:ignored-files ("LICENSE"))
--
2.30.2
^ permalink raw reply related [flat|nested] 15+ messages in thread
* Re: New package for NonGNU ELPA : totp-auth
2024-02-05 15:35 New package for NonGNU ELPA : totp-auth Vivek Das Mohapatra
@ 2024-02-06 10:04 ` Philip Kaludercic
2024-02-06 10:24 ` Po Lu
2024-02-07 3:16 ` Richard Stallman
2024-02-07 13:43 ` Michael Albinus
2 siblings, 1 reply; 15+ messages in thread
From: Philip Kaludercic @ 2024-02-06 10:04 UTC (permalink / raw)
To: Vivek Das Mohapatra; +Cc: emacs-devel
[-- Attachment #1: Type: application/pgp-encrypted, Size: 11 bytes --]
[-- Attachment #2: Type: application/octet-stream, Size: 8673 bytes --]
-----BEGIN PGP MESSAGE-----
hQGMA8l9AV1fe8J4AQwAz/QMs0AwGZjXK465T/saRV5yPkV4DrUkJ2AIaUVHqdH+
sdQgZJQzeh/2YlVtn+KvE1rrnTSbrVsQOUY+NlmtVlHBoECS42Bg37YDuizod22Q
hD+k3oIRep+D68FvOQm6zgoQsVhzJANZ5lk+jV21bS2exyCcUZzxW+3Ga/Pu09zz
gFs5K0ZjBJ6OYdKYQwWWn4IQozR06kuDoTwvqJvz87Hify1To9qaugtQ5yMVsRXk
hBupIGi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tX+m2nq6QtbGgrl5ExAwCiICy
gsqpXnlGpxtwTeQWFFM8hafktls2YCJQXzR9bCHWWxBYqH8Dvpq4VtDC1CgweZvr
QLO7ggFKYCAPwJ1oNCwRUD22oI2pY5D8TKAaot/kdppkklWjmR/3V2+XfYryw7lt
vMWKK0IzKmfCPL0yfWvW+uRPWdhQ/ZwFIpwT80EF/sBm3OsFnH0jUhEsjQCB2thX
scl/XgbHC+mlC1SobZx3X7gOiVfTESQytX8pZ4BNRN+qfkxm1mChV9R8AzqZDzYC
5iv4RW479fTNrrTR3StjULtzUevcw6xVX7d/c8ZtcfPBfBhNv+oO6C2jVKDcQZjY
1EhJLPkNQf+2w+LM0cYeyAjddidqvffXuT7A+pfHTvfBeKTAgTrAgOoqS+CgcFQo
wWPvi6l7ricXE+9Z6LxzfFLZ0alGIPpEZf1dY71y7CZL8thM0fblvt/zfilWgil4
epBms6zwHLRTnEeFNuaCQ2bBwxkIEEa6velGopyT+7eMFWrBibE06NisVL6pCqbT
lsvKx9bunCReMeSe/snD2Kmo0pIfXPaCnCoFNzz1gTbdnfOycjFDb2aQLYNHvtNX
YYUwXf0a4uAnXJ/1+IWcpL+8KCc5ujSl65cd75xp5uescCpNvgJR9gtOnlDfybG5
lf7acloW7mFzlFZQQTIODouh1L3aXukgL9gDiGHVqWxRuJkjArPalSlRmAnjgF7Y
ccrex7lBVvHsIGuaS5vKphUiZTCBk1V+ZsbmyjAyQq0xAMGBBM2DgYQCIzan++SG
P5HRSQMs/LJIX+lQVU5fvsBc7e702g==
=v43Z
-----END PGP MESSAGE-----
^ permalink raw reply [flat|nested] 15+ messages in thread
* Re: New package for NonGNU ELPA : totp-auth
2024-02-06 10:04 ` Philip Kaludercic
@ 2024-02-06 10:24 ` Po Lu
2024-02-06 10:27 ` Philip Kaludercic
0 siblings, 1 reply; 15+ messages in thread
From: Po Lu @ 2024-02-06 10:24 UTC (permalink / raw)
To: Philip Kaludercic; +Cc: Vivek Das Mohapatra, emacs-devel
Philip Kaludercic <philipk@posteo.net> writes:
> Error! Result from decryption:
>
> Decryption failed
>
> Decryption failed
I can't decrypt this email, so would you please resend it _without_
encryption? Thanks in advance.
^ permalink raw reply [flat|nested] 15+ messages in thread
* Re: New package for NonGNU ELPA : totp-auth
2024-02-06 10:24 ` Po Lu
@ 2024-02-06 10:27 ` Philip Kaludercic
0 siblings, 0 replies; 15+ messages in thread
From: Philip Kaludercic @ 2024-02-06 10:27 UTC (permalink / raw)
To: Po Lu; +Cc: Vivek Das Mohapatra, emacs-devel
Po Lu <luangruo@yahoo.com> writes:
> Philip Kaludercic <philipk@posteo.net> writes:
>
>> Error! Result from decryption:
>>
>> Decryption failed
>>
>> Decryption failed
>
> I can't decrypt this email, so would you please resend it _without_
> encryption? Thanks in advance.
Uh, I don't know why this message was encrypted? Thanks for the notice,
I'll try to resend it decrypted.
^ permalink raw reply [flat|nested] 15+ messages in thread
* Re: New package for NonGNU ELPA : totp-auth
2024-02-05 15:35 New package for NonGNU ELPA : totp-auth Vivek Das Mohapatra
2024-02-06 10:04 ` Philip Kaludercic
@ 2024-02-07 3:16 ` Richard Stallman
2024-02-07 6:46 ` Jean Louis
` (3 more replies)
2024-02-07 13:43 ` Michael Albinus
2 siblings, 4 replies; 15+ messages in thread
From: Richard Stallman @ 2024-02-07 3:16 UTC (permalink / raw)
To: Vivek Das Mohapatra; +Cc: emacs-devel
[[[ To any NSA and FBI agents reading my email: please consider ]]]
[[[ whether defending the US Constitution against all enemies, ]]]
[[[ foreign or domestic, requires you to follow Snowden's example. ]]]
This is a useful feature, but should it be implemented as a part of
Emacs? Is there / should there be a shell command for this?
Given a shell command for this, do we want it implemented in Emacs
too?
--
Dr Richard Stallman (https://stallman.org)
Chief GNUisance of the GNU Project (https://gnu.org)
Founder, Free Software Foundation (https://fsf.org)
Internet Hall-of-Famer (https://internethalloffame.org)
^ permalink raw reply [flat|nested] 15+ messages in thread
* Re: New package for NonGNU ELPA : totp-auth
2024-02-07 3:16 ` Richard Stallman
@ 2024-02-07 6:46 ` Jean Louis
2024-02-08 19:15 ` Morgan Willcock
2024-02-07 8:23 ` Philip Kaludercic
` (2 subsequent siblings)
3 siblings, 1 reply; 15+ messages in thread
From: Jean Louis @ 2024-02-07 6:46 UTC (permalink / raw)
To: Richard Stallman; +Cc: Vivek Das Mohapatra, emacs-devel
* Richard Stallman <rms@gnu.org> [2024-02-07 06:17]:
> [[[ To any NSA and FBI agents reading my email: please consider ]]]
> [[[ whether defending the US Constitution against all enemies, ]]]
> [[[ foreign or domestic, requires you to follow Snowden's example. ]]]
>
> This is a useful feature, but should it be implemented as a part of
> Emacs? Is there / should there be a shell command for this?
>
> Given a shell command for this, do we want it implemented in Emacs
> too?
I have implemented it this way below, and it works well now for long time already. It uses the external shell command. I would rather use Emacs Lisp for it. It is required at many logins. I did not show more than 3 logins below, and they are also fake keys.
(defvar oath-keys '(digitalocean "31CHLCURYJ5VRDHB"
tether "J2AMLDF473VHD517"
twilio "EB1JS6TJNL1TQCWSNEZJG6IQ4XZGSC4UMI276X3TEODG2VQRTE5A")
(defun call-process-to-string (program &optional infile display &rest args)
(with-temp-buffer
(apply #'call-process program infile t display args)
(buffer-string)))
(defun oath ()
"Ask for service and kill OATH result to memory."
(interactive)
(let* ((key (rcd-choose (map-keys oath-keys) "OATH Service: "))
(result (call-process-to-string "oathtool" nil nil "-b" "--totp=sha1" (plist-get oath-keys (intern key))))
(result (string-trim result)))
(message result)
(kill-new result)))
Jean
Take action in Free Software Foundation campaigns:
https://www.fsf.org/campaigns
In support of Richard M. Stallman
https://stallmansupport.org/
^ permalink raw reply [flat|nested] 15+ messages in thread
* Re: New package for NonGNU ELPA : totp-auth
2024-02-07 3:16 ` Richard Stallman
2024-02-07 6:46 ` Jean Louis
@ 2024-02-07 8:23 ` Philip Kaludercic
2024-02-07 8:48 ` Michael Albinus
2024-02-07 11:43 ` Vivek Das Mohapatra
3 siblings, 0 replies; 15+ messages in thread
From: Philip Kaludercic @ 2024-02-07 8:23 UTC (permalink / raw)
To: Richard Stallman; +Cc: Vivek Das Mohapatra, emacs-devel
Richard Stallman <rms@gnu.org> writes:
> [[[ To any NSA and FBI agents reading my email: please consider ]]]
> [[[ whether defending the US Constitution against all enemies, ]]]
> [[[ foreign or domestic, requires you to follow Snowden's example. ]]]
>
> This is a useful feature, but should it be implemented as a part of
> Emacs? Is there / should there be a shell command for this?
There seems to be this: https://www.nongnu.org/oath-toolkit/
> Given a shell command for this, do we want it implemented in Emacs
> too?
I don't think that the existence of shell utility is a reason not to
have a feature written for Emacs. Elisp scripts are usually more
portable and certainly more easily hackable than their shell
counterparts.
^ permalink raw reply [flat|nested] 15+ messages in thread
* Re: New package for NonGNU ELPA : totp-auth
2024-02-07 3:16 ` Richard Stallman
2024-02-07 6:46 ` Jean Louis
2024-02-07 8:23 ` Philip Kaludercic
@ 2024-02-07 8:48 ` Michael Albinus
2024-02-10 3:55 ` Richard Stallman
2024-02-07 11:43 ` Vivek Das Mohapatra
3 siblings, 1 reply; 15+ messages in thread
From: Michael Albinus @ 2024-02-07 8:48 UTC (permalink / raw)
To: Richard Stallman; +Cc: Vivek Das Mohapatra, emacs-devel
Richard Stallman <rms@gnu.org> writes:
Hi Richard,
> This is a useful feature, but should it be implemented as a part of
> Emacs? Is there / should there be a shell command for this?
>
> Given a shell command for this, do we want it implemented in Emacs
> too?
I'm not Vivek, but I'm currently reviewing his code. The big advantage
over a shell command is, that it integrates with Emacs' password
infrastructure auth-source.el.
OTOH, I don't see which advantage we would gain if the implementation
is based on a shell command.
Best regards, Michael.
^ permalink raw reply [flat|nested] 15+ messages in thread
* Re: New package for NonGNU ELPA : totp-auth
2024-02-07 3:16 ` Richard Stallman
` (2 preceding siblings ...)
2024-02-07 8:48 ` Michael Albinus
@ 2024-02-07 11:43 ` Vivek Das Mohapatra
2024-02-10 3:55 ` Richard Stallman
3 siblings, 1 reply; 15+ messages in thread
From: Vivek Das Mohapatra @ 2024-02-07 11:43 UTC (permalink / raw)
To: rms; +Cc: emacs-devel
On 07/02/2024 03:16, Richard Stallman wrote:
> This is a useful feature, but should it be implemented as a part of
> Emacs? Is there / should there be a shell command for this?
>
> Given a shell command for this, do we want it implemented in Emacs
> too?
You could implement a shell command, but it would not interface
with emacs' auth sources (which includes support for the freedesktop
secrets API and PGP encrypted files).
Implementing this in emacs allows us (well, me) to re-use the easy
support for desktop notifications, auth sources and so forth that
emacs already provides.
Having said that - there's no reason you couldn't provide this as a
standalone command, and indeed there's an argument that a desktop
environment should provide such a feature or application: For me emacs
was the fastest route to implementing this feature and integrating it
into my desktop experience in a convenient-to-use way.
^ permalink raw reply [flat|nested] 15+ messages in thread
* Re: New package for NonGNU ELPA : totp-auth
2024-02-05 15:35 New package for NonGNU ELPA : totp-auth Vivek Das Mohapatra
2024-02-06 10:04 ` Philip Kaludercic
2024-02-07 3:16 ` Richard Stallman
@ 2024-02-07 13:43 ` Michael Albinus
2 siblings, 0 replies; 15+ messages in thread
From: Michael Albinus @ 2024-02-07 13:43 UTC (permalink / raw)
To: Vivek Das Mohapatra; +Cc: emacs-devel
Vivek Das Mohapatra <vivek@etla.org> writes:
> Hi
Hi Vivek,
> I've recently made a package that implements RFC6238 TOTP and was
> wondering if nongnu elpa would consider carrying it:
Thanks for the offer. It looks like your package is already available
via MELPA, so I'm using this for review. First of all, could you pls
explain what's the relation of your package and the package totp, also
available via MELPA? Similarities and differences?
And a short search shows also the package emacs-totp
on Github, how is the relation whith that package?
Some comments on first test. I've naively installed the package from
MELPA. In a new Emacs session, I've called 'M-x totp-auth RET RET'. This
returns
--8<---------------cut here---------------start------------->8---
Error running timer ‘totp-auth-update-token-notification’: (wrong-type-argument char-or-string-p nil) [nn times]
--8<---------------cut here---------------end--------------->8---
Well, likely due to a missing secret. Should be told to me.
So I call the following 'M-x totp-auth-add-secret RET 1234567890 RET RET
RET'. The secret I've entered was visible in clear text - bad. You
shouldn't use read-string for this job, but let auth-source-search and
its :create feature do the job. If you really want to read the password
on your own, use password-read instead of read-string .
I was asked for Service, User, and Size. Since I didn't get any hint
what it means, I've entered RET, hoping for defaults. Well, in the GNOME
passwords I could see now a new item in the Login collection, w/o a label
and with the secret "otpauth://totp/?secret=1234567890;digits=6". Looks
like related, but without a label it isn't useful I guess. I've deleted
it.
Next approach: 'M-x totp-auth-add-secret RET 1234567890 RET foo RET
RET RET'. Voila, that works! There's now a new item in the Login
collection labelled "foo", with the same secret. Promising.
I recommend to enhance your documentation, in the Commentary section of
totp-auth.el and/or via tooltips.
Now ruuning again 'M-x totp-auth RET foo RET'. "foo" is offered for
completion, good. But I get the error message
--8<---------------cut here---------------start------------->8---
Error running timer ‘totp-auth-update-token-notification’: (error "Invalid base32 payload length: 10") [73 times]
--8<---------------cut here---------------end--------------->8---
So the default length (6) does not match the real length (10). Should be
handled by the package.
Adding a new secret, 'M-x totp-auth-add-secret RET 0987654321 RET bla
RET RET 10 RET'. But 'M-x totp-auth RET bla RET' shows the same error.
Last check: Using 6 digits via 'M-x totp-auth-add-secret RET 123456 RET
baz RET RET RET'. 'M-x totp-auth RET baz RET' shows now
--8<---------------cut here---------------start------------->8---
Error running timer ‘totp-auth-update-token-notification’: (args-out-of-range "\267\316\370\0" 5) [76 times]
--8<---------------cut here---------------end--------------->8---
Stopping my tests. Pls fix the package (still in MELPA, no problem) that
it is useful for uninitiated users. I will continue to check then.
Best regards, Michael.
^ permalink raw reply [flat|nested] 15+ messages in thread
* Re: New package for NonGNU ELPA : totp-auth
2024-02-07 6:46 ` Jean Louis
@ 2024-02-08 19:15 ` Morgan Willcock
2024-02-12 9:10 ` Jean Louis
0 siblings, 1 reply; 15+ messages in thread
From: Morgan Willcock @ 2024-02-08 19:15 UTC (permalink / raw)
To: Jean Louis; +Cc: Richard Stallman, Vivek Das Mohapatra, emacs-devel
Jean Louis <bugs@gnu.support> writes:
> * Richard Stallman <rms@gnu.org> [2024-02-07 06:17]:
>> [[[ To any NSA and FBI agents reading my email: please consider ]]]
>> [[[ whether defending the US Constitution against all enemies, ]]]
>> [[[ foreign or domestic, requires you to follow Snowden's example. ]]]
>>
>> This is a useful feature, but should it be implemented as a part of
>> Emacs? Is there / should there be a shell command for this?
>>
>> Given a shell command for this, do we want it implemented in Emacs
>> too?
>
> I have implemented it this way below, and it works well now for long time already. It uses the external shell command. I would rather use Emacs Lisp for it. It is required at many logins. I did not show more than 3 logins below, and they are also fake keys.
>
> (defvar oath-keys '(digitalocean "31CHLCURYJ5VRDHB"
> tether "J2AMLDF473VHD517"
> twilio "EB1JS6TJNL1TQCWSNEZJG6IQ4XZGSC4UMI276X3TEODG2VQRTE5A")
>
> (defun call-process-to-string (program &optional infile display &rest args)
> (with-temp-buffer
> (apply #'call-process program infile t display args)
> (buffer-string)))
>
> (defun oath ()
> "Ask for service and kill OATH result to memory."
> (interactive)
> (let* ((key (rcd-choose (map-keys oath-keys) "OATH Service: "))
> (result (call-process-to-string "oathtool" nil nil "-b" "--totp=sha1" (plist-get oath-keys (intern key))))
> (result (string-trim result)))
> (message result)
> (kill-new result)))
I imagine this is potentially leaking your keys by making them visible
in the system's process information.
Recent versions of oathtool can read the key from stdin, so any attempt
to create a wrapper should probably be using this feature.
--
Morgan Willcock
^ permalink raw reply [flat|nested] 15+ messages in thread
* Re: New package for NonGNU ELPA : totp-auth
2024-02-07 11:43 ` Vivek Das Mohapatra
@ 2024-02-10 3:55 ` Richard Stallman
0 siblings, 0 replies; 15+ messages in thread
From: Richard Stallman @ 2024-02-10 3:55 UTC (permalink / raw)
To: Vivek Das Mohapatra; +Cc: emacs-devel
[[[ To any NSA and FBI agents reading my email: please consider ]]]
[[[ whether defending the US Constitution against all enemies, ]]]
[[[ foreign or domestic, requires you to follow Snowden's example. ]]]
> You could implement a shell command, but it would not interface
> with emacs' auth sources (which includes support for the freedesktop
> secrets API and PGP encrypted files).
> Implementing this in emacs allows us (well, me) to re-use the easy
> support for desktop notifications, auth sources and so forth that
> emacs already provides.
Thanks for explaining.
--
Dr Richard Stallman (https://stallman.org)
Chief GNUisance of the GNU Project (https://gnu.org)
Founder, Free Software Foundation (https://fsf.org)
Internet Hall-of-Famer (https://internethalloffame.org)
^ permalink raw reply [flat|nested] 15+ messages in thread
* Re: New package for NonGNU ELPA : totp-auth
2024-02-07 8:48 ` Michael Albinus
@ 2024-02-10 3:55 ` Richard Stallman
0 siblings, 0 replies; 15+ messages in thread
From: Richard Stallman @ 2024-02-10 3:55 UTC (permalink / raw)
To: Michael Albinus; +Cc: vivek, emacs-devel
[[[ To any NSA and FBI agents reading my email: please consider ]]]
[[[ whether defending the US Constitution against all enemies, ]]]
[[[ foreign or domestic, requires you to follow Snowden's example. ]]]
> I'm not Vivek, but I'm currently reviewing his code. The big advantage
> over a shell command is, that it integrates with Emacs' password
> infrastructure auth-source.el.
> OTOH, I don't see which advantage we would gain if the implementation
> is based on a shell command.
The advantage would be to make this feature easy to invoke from
context outside Emacs. I have a feeling that would be useful.
I can't estimate the magnutude of the disadvantages, though.
--
Dr Richard Stallman (https://stallman.org)
Chief GNUisance of the GNU Project (https://gnu.org)
Founder, Free Software Foundation (https://fsf.org)
Internet Hall-of-Famer (https://internethalloffame.org)
^ permalink raw reply [flat|nested] 15+ messages in thread
* Re: New package for NonGNU ELPA : totp-auth
2024-02-08 19:15 ` Morgan Willcock
@ 2024-02-12 9:10 ` Jean Louis
2024-02-14 13:05 ` Jean Louis
0 siblings, 1 reply; 15+ messages in thread
From: Jean Louis @ 2024-02-12 9:10 UTC (permalink / raw)
To: Morgan Willcock; +Cc: emacs-devel
* Morgan Willcock <morgan@ice9.digital> [2024-02-08 22:16]:
> I imagine this is potentially leaking your keys by making them visible
> in the system's process information.
> Recent versions of oathtool can read the key from stdin, so any attempt
> to create a wrapper should probably be using this feature.
I get it, thanks.
--
Jean
Take action in Free Software Foundation campaigns:
https://www.fsf.org/campaigns
In support of Richard M. Stallman
https://stallmansupport.org/
^ permalink raw reply [flat|nested] 15+ messages in thread
* Re: New package for NonGNU ELPA : totp-auth
2024-02-12 9:10 ` Jean Louis
@ 2024-02-14 13:05 ` Jean Louis
0 siblings, 0 replies; 15+ messages in thread
From: Jean Louis @ 2024-02-14 13:05 UTC (permalink / raw)
To: Morgan Willcock, emacs-devel
* Jean Louis <bugs@gnu.support> [2024-02-12 23:19]:
> * Morgan Willcock <morgan@ice9.digital> [2024-02-08 22:16]:
> > I imagine this is potentially leaking your keys by making them visible
> > in the system's process information.
>
> > Recent versions of oathtool can read the key from stdin, so any attempt
> > to create a wrapper should probably be using this feature.
I use my command here to to go easier with pipes.
(defun rcd-command-output-from-input (program input &rest args)
"Return output string from PROGRAM with given INPUT string and optional ARGS."
(let* ((output (with-temp-buffer
(insert input)
(apply #'call-process-region nil nil program t '(t nil) nil args)
(buffer-string))))
output))
Then I have modified it to read from input:
(defcustom rcd-oath-keys ()
"List of OATH keys."
:type '(alist :key-type string)
:group 'rcd)
(defun rcd-oath ()
(interactive)
(let* ((key (rcd-choose (map-keys rcd-oath-keys) "OATH Service: "))
(program "oathtool")
(result (rcd-command-output-from-input program (symbol-name (alist-get key rcd-oath-keys nil nil 'equalp)) "-" "-b" "--totp=sha1"))
(result (string-trim result)))
(message result)
(kill-new result)))
But I am not sure if it can be seen in process list this way. What do
you think?
Jean
Take action in Free Software Foundation campaigns:
https://www.fsf.org/campaigns
In support of Richard M. Stallman
https://stallmansupport.org/
^ permalink raw reply [flat|nested] 15+ messages in thread
end of thread, other threads:[~2024-02-14 13:05 UTC | newest]
Thread overview: 15+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-02-05 15:35 New package for NonGNU ELPA : totp-auth Vivek Das Mohapatra
2024-02-06 10:04 ` Philip Kaludercic
2024-02-06 10:24 ` Po Lu
2024-02-06 10:27 ` Philip Kaludercic
2024-02-07 3:16 ` Richard Stallman
2024-02-07 6:46 ` Jean Louis
2024-02-08 19:15 ` Morgan Willcock
2024-02-12 9:10 ` Jean Louis
2024-02-14 13:05 ` Jean Louis
2024-02-07 8:23 ` Philip Kaludercic
2024-02-07 8:48 ` Michael Albinus
2024-02-10 3:55 ` Richard Stallman
2024-02-07 11:43 ` Vivek Das Mohapatra
2024-02-10 3:55 ` Richard Stallman
2024-02-07 13:43 ` Michael Albinus
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.