]> git.proxmox.com Git - pve-access-control.git/commit
oathkeygen: modernize and improve error handling slightly
authorThomas Lamprecht <t.lamprecht@proxmox.com>
Sun, 21 May 2023 10:34:19 +0000 (12:34 +0200)
committerThomas Lamprecht <t.lamprecht@proxmox.com>
Sun, 21 May 2023 10:37:11 +0000 (12:37 +0200)
commitb08d939725c50ff26de467adc9a47b063a671626
tree9df38665deedca891c35a88b34bd6269c23926be
parent52910795a94c8113f014ff843d0e2f786a65aa2a
oathkeygen: modernize and improve error handling slightly

Note that this could also just be documented doing:

 dd if=/dev/urandom bs=1 count=10 2>/dev/null | base32

And using TOTP apps that can scan QR codes is much better UX anyway,
but its to trivial to bother deprecating it now and we'd still depend
on libmime-base32-perl, so really nothing gained in removing or
rewriting in shell..

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
src/oathkeygen