/2FA-HOTP-TOTP-Bash

Shell-script (Bash) with functions relevant to 2FA. Compatible with Google Authenticator.

Primary LanguageShellGNU General Public License v3.0GPL-3.0

2FA toolkit for Bash scripting

Features

  • HMAC
  • HOTP
  • TOTP
  • QR-code

Requirements

  • bash
  • openssl
  • python3 (only if URI / QR-code is required)
  • qrencode (only if QR-code is required. For Ubuntu, sudo apt install qrencode would install it)

Manual

Source the library in Bash with source 2fa.bash to avail the functions defined therein. The API definitions can be found within the script.

License

GNU GPL v3 or later

Copyright (C) Somajit Dey 2021