All Projects → WhyNotHugo → Totp Cli

WhyNotHugo / Totp Cli

Licence: isc
A cli-based pass-backed TOTP app

Programming Languages

python
139335 projects - #7 most used programming language

Projects that are alternatives of or similar to Totp Cli

Twofactor totp
🔑 Second factor TOTP (RFC 6238) provider for Nextcloud
Stars: ✭ 203 (+167.11%)
Mutual labels:  otp, 2fa, totp
otp-java
A small and easy-to-use one-time password generator library for Java according to RFC 4226 (HOTP) and RFC 6238 (TOTP).
Stars: ✭ 107 (+40.79%)
Mutual labels:  otp, totp, 2fa
Freeotpplus
Enhanced fork of FreeOTP-Android providing a feature-rich 2FA authenticator
Stars: ✭ 223 (+193.42%)
Mutual labels:  otp, 2fa, totp
Go Guardian
Go-Guardian is a golang library that provides a simple, clean, and idiomatic way to create powerful modern API and web authentication.
Stars: ✭ 204 (+168.42%)
Mutual labels:  authentication, 2fa, totp
Otp.net
A .NET implementation of TOTP and HOTP for things like two-factor authentication codes.
Stars: ✭ 424 (+457.89%)
Mutual labels:  otp, 2fa, totp
Multiotp
multiOTP open source strong two factor authentication PHP library, OATH certified, with TOTP, HOTP, Mobile-OTP, YubiKey, SMS, QRcode provisioning, etc.
Stars: ✭ 173 (+127.63%)
Mutual labels:  otp, authentication, totp
crotp
CrOTP - One Time Passwords for Crystal
Stars: ✭ 62 (-18.42%)
Mutual labels:  otp, totp, 2fa
Aegis
A free, secure and open source app for Android to manage your 2-step verification tokens.
Stars: ✭ 2,692 (+3442.11%)
Mutual labels:  otp, 2fa, totp
Two Factor Bundle
[OUTDATED] Two-factor authentication for Symfony applications 🔐 (bunde version ≤ 4). Please use version 5 from https://github.com/scheb/2fa.
Stars: ✭ 388 (+410.53%)
Mutual labels:  authentication, 2fa, totp
extract otp secret keys
Extract two-factor authentication (2FA, TFA) secret keys from export QR codes of "Google Authenticator" app
Stars: ✭ 217 (+185.53%)
Mutual labels:  otp, totp, 2fa
Onetimepassword
🔑 A small library for generating TOTP and HOTP one-time passwords on iOS.
Stars: ✭ 243 (+219.74%)
Mutual labels:  otp, 2fa, totp
Privacyidea
🔐 multi factor authentication system (2FA, MFA, OTP Server)
Stars: ✭ 1,027 (+1251.32%)
Mutual labels:  otp, authentication, 2fa
2FAuth
A Web app to manage your Two-Factor Authentication (2FA) accounts and generate their security codes
Stars: ✭ 664 (+773.68%)
Mutual labels:  otp, totp, 2fa
Authelia
The Single Sign-On Multi-Factor portal for web apps
Stars: ✭ 11,094 (+14497.37%)
Mutual labels:  authentication, 2fa, totp
Gortas
Gortas is an API based authentication service, allows adding authentication to your site or service with minimum efforts.
Stars: ✭ 48 (-36.84%)
Mutual labels:  otp, authentication, 2fa
Fsq
A tool for querying the file system with a SQL-like language.
Stars: ✭ 60 (-21.05%)
Mutual labels:  cli, command-line
Q
q - Run SQL directly on CSV or TSV files
Stars: ✭ 8,809 (+11490.79%)
Mutual labels:  cli, command-line
Aspnetcoreid4external
external OpenID Connect Login to IdentityServer4 with AAD
Stars: ✭ 63 (-17.11%)
Mutual labels:  2fa, totp
Glab
An open-source GitLab command line tool bringing GitLab's cool features to your command line
Stars: ✭ 1,126 (+1381.58%)
Mutual labels:  cli, command-line
Ntutils
Various Command Line Utilities Ported to Windows NT
Stars: ✭ 58 (-23.68%)
Mutual labels:  cli, command-line

totp-cli

.. image:: https://img.shields.io/pypi/v/totp.svg :target: https://pypi.python.org/pypi/totp :alt: version on pypi

.. image:: https://img.shields.io/pypi/l/totp.svg :target: https://github.com/hobarrera/totp-cli/blob/master/LICENCE :alt: licence

totp-cli is a simple command line application to generate OTP tokens for two factor authentication using RFC6238_.

.. _RFC6238: http://tools.ietf.org/html/rfc6238

These are compatible with many popular services such as Facebook, GitHub, Google, eve-online, battle.net, etc.

totp-cli fetches your shared key (aka: code) from pass_, generates the token, outputs it to stdout and copies it to your CLIPBOARD X selection. Default X selection can be overridden with the PASSWORD_STORE_X_SELECTION environment variable.

Shared keys should be stored in your pass storage under 2fa/SERVICE/code, for example 2fa/github/code. The -a flag (or alternatively the add subcommand) can be used to add this less painfully.

.. _pass: http://www.passwordstore.org/

Usage

Usage::

totp SERVICE

For example::

$ totp github
621787

You don't need to run totp from the command line if you just want to paste the code; you can run it from dmenu, or whatever your application launcher is.

To offset the clock by a number of seconds::

totp -s SECONDS SERVICE

For example::

$ totp -s +60 github
735092
$ totp -s -90 github
909651

To add a service::

totp -a SERVICE
# OR
totp add SERVICE

For example::

$ totp -a github
Token length [6]: 6
Shared key: KEY

Note that if the service already exists, it will be overwritten without warning.

To output without copying to the clipboard:

$ totp -n SERVICE
# OR
$ totp --nocopy SERVICE

About pass entries

Pass entries are expected to have the TOTP secret in their first line (as provided by the third party). The amount of digits token must have (for example, battle.net uses 8), must be provided in a separate line, with a format like:

Digits: 8

For the moment, only customizing the token length is possible.

Requirements

  • pass <http://www.passwordstore.org/>_
  • python >= 3.3 <https://www.python.org/>_

There are also some platform-specific requirements for copying code into the clipboard:

  • xclip <http://sourceforge.net/projects/xclip>_ for Xorg (Linux/BSD).

Installation

Installation is quite simple:

$ pip install totp

There is also an AUR package_ available for ArchLinux users.

.. _AUR package: https://aur.archlinux.org/packages/totp-cli/

You can also configure shell completion for totp-cli:

  • Bash: Download totp-cli-completion.bash <contrib/totp-cli-completion.bash>_ and source it from your bash configuration file (e.g. .bash_profile)

  • Zsh: Download totp-cli-completion.zsh <contrib/totp-cli-completion.zsh>_ as _totp to site-functions directory (e.g. /usr/local/share/zsh/site-functions)

License

totp-cli is distrbuted under the terms of the ISC licence. See LICENCE for details.

Copyright (c) 2014-2017 Hugo Osvaldo Barrera [email protected]

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].