[haiku-sysadmin] Re: Activation of OTP (One-Time-Passwords) on vmweb.haiku-os.org

  • From: Ingo Weinhold <ingo_weinhold@xxxxxx>
  • To: haiku-sysadmin@xxxxxxxxxxxxx
  • Date: Sun, 22 Mar 2015 11:35:33 +0100

On 03/21/2015 11:09 PM, Oliver Tappe wrote:
It'd be great if all admins could try to set up OTP access for them and
tell here when they are done or whatever problems they have encountered.

The main problem was to convert hex to base32 for FreeOTP (without using a online converter). In case anyone finds himself in the same situation, there's a StackOverflow answer [1] that provides a perl script for base32 encoding. On a non-Debianish Linux MIME::Base32 can be installed via cpan. I ended up using:

  echo <hex> | xxd -r -p | perl -I ~/perl5/lib/perl5 ./base32enc.pl

Maybe there's a simpler way.

CU, Ingo

[1] http://serverfault.com/questions/386199/encoding-to-base32-from-the-shell


Other related posts: