All Projects โ†’ tadfisher โ†’ Pass Otp

tadfisher / Pass Otp

Licence: gpl-3.0
A pass extension for managing one-time-password (OTP) tokens

Programming Languages

shell
77523 projects

Projects that are alternatives of or similar to Pass Otp

PassHUD
A HUD-style interface for pass on macOS
Stars: โœญ 31 (-95.37%)
Mutual labels:  password-store
Pash
๐Ÿ”’ A simple password manager using GPG written in POSIX sh.
Stars: โœญ 254 (-62.09%)
Mutual labels:  password-store
Spicypass
A light-weight password manager with a focus on simplicity and security
Stars: โœญ 367 (-45.22%)
Mutual labels:  password-store
secrets
Not Yet Another Password Manager written in Go using libsodium
Stars: โœญ 28 (-95.82%)
Mutual labels:  password-store
tessen
an interactive menu to autotype and copy pass and gopass data
Stars: โœญ 37 (-94.48%)
Mutual labels:  password-store
Devops Api
Golang + Beego ็ผ–ๅ†™ ๆไพ›ๅผ€ๅ‘/่ฟ็ปดๅธธ็”จๆ“ไฝœ็š„HTTP APIๆŽฅๅฃ: ๆ‰‹ๆœบๅฝ’ๅฑžๅœฐๆŸฅ่ฏขใ€IPๅœฐๅ€ๆŸฅ่ฏขใ€ๅทฅไฝœๆ—ฅ่Š‚ๅ‡ๆ—ฅๅˆคๆ–ญใ€ๅพฎไฟกๆŠฅ่ญฆใ€้’‰้’‰ๆŠฅ่ญฆใ€2ๆญฅ้ชŒ่ฏใ€ๅฏ†็ ๅญ˜ๅ‚จใ€ๅ‘้€้‚ฎไปถใ€็”Ÿๆˆ้šๆœบๅฏ†็ ็ญ‰ๅŠŸ่ƒฝ
Stars: โœญ 258 (-61.49%)
Mutual labels:  password-store
secret
A tiny secret store to keep your little secrets
Stars: โœญ 52 (-92.24%)
Mutual labels:  password-store
Strongbox
A KeePass/Password Safe Client for iOS and OS X
Stars: โœญ 586 (-12.54%)
Mutual labels:  password-store
OormiPass
Free open source cross platform password manager
Stars: โœญ 50 (-92.54%)
Mutual labels:  password-store
Buttercup Core
๐ŸŽฉ The mighty NodeJS password vault
Stars: โœญ 340 (-49.25%)
Mutual labels:  password-store
gnome-pass-search-provider
Pass password manager search provider for gnome-shell
Stars: โœญ 52 (-92.24%)
Mutual labels:  password-store
BoringAuth
Straightforward password, passphrase, TOTP, and HOTP user authentication
Stars: โœญ 49 (-92.69%)
Mutual labels:  password-store
Buttercup Mobile
๐Ÿ“ฑ React-Native mobile application for Buttercup
Stars: โœญ 297 (-55.67%)
Mutual labels:  password-store
password-keeper
A simple and secure Password Management System made completely in Python.
Stars: โœญ 26 (-96.12%)
Mutual labels:  password-store
Browser Addon
Kee adds free, secure and easy password management features to your browser which save time and keep your private data more secure.
Stars: โœญ 386 (-42.39%)
Mutual labels:  password-store
jpass
๐Ÿ” Password manager application with strong encryption (AES-256). [Java/Swing]
Stars: โœญ 129 (-80.75%)
Mutual labels:  password-store
Pass Tomb
A pass extension that helps you to keep the whole tree of password encrypted inside a tomb.
Stars: โœญ 254 (-62.09%)
Mutual labels:  password-store
Authpass
AuthPass - Password Manager based on Flutter for all platforms. Keepass 2.x (kdbx 3.x) compatible.
Stars: โœญ 591 (-11.79%)
Mutual labels:  password-store
Pass Import
A pass extension for importing data from most of the existing password manager.
Stars: โœญ 412 (-38.51%)
Mutual labels:  password-store
Gokey
A simple vaultless password manager in Go
Stars: โœญ 305 (-54.48%)
Mutual labels:  password-store
Branch Status
master Build Status: master
develop Build Status: develop

pass-otp

A pass extension for managing one-time-password (OTP) tokens.

Usage

Usage:

    pass otp [code] [--clip,-c] pass-name
        Generate an OTP code and optionally put it on the clipboard.
        If put on the clipboard, it will be cleared in 45 seconds.

    pass otp insert [--force,-f] [--echo,-e] [pass-name]
        Prompt for and insert a new OTP key URI. If pass-name is not supplied,
        use the URI label. Optionally, echo the input. Prompt before overwriting
        existing password unless forced. This command accepts input from stdin.

    pass otp append [--force,-f] [--echo,-e] pass-name
        Appends an OTP key URI to an existing password file. Optionally, echo
        the input. Prompt before overwriting an existing URI unless forced. This
        command accepts input from stdin.

    pass otp uri [--clip,-c] [--qrcode,-q] pass-name
        Display the key URI stored in pass-name. Optionally, put it on the
        clipboard, or display a QR code.

    pass otp validate uri
        Test if the given URI is a valid OTP key URI.

More information may be found in the pass-otp(1) man page.

Examples

Prompt for an OTP token, hiding input:

$ pass otp insert totp-secret
Enter otpauth:// URI for totp-secret:
Retype otpauth:// URI for totp-secret:

Prompt for an OTP token, echoing input:

$ pass otp insert -e totp-secret
Enter otpauth:// URI for totp-secret: otpauth://totp/totp-secret?secret=AAAAAAAAAAAAAAAA&issuer=totp-secret

Pipe an otpauth:// URI into a passfile:

$ pass otp insert totp-secret < totp-secret.txt

Use zbar to decode a QR image or webcam shot into a passfile:

$ zbarimg -q --raw qrcode.png | pass otp insert totp-secret

To use your webcam:

$ zbarcam -q --raw | pass otp insert totp-secret

The same, but appending to an existing passfile:

$ zbarimg -q --raw google-qrcode.png | pass otp append google/[email protected]

Generate a 2FA code using this token:

$ pass otp totp-secret
698816

Display a QR code for an OTP token:

$ pass otp uri -q totp-secret
โ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆ
โ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆ
โ–ˆโ–ˆโ–ˆโ–ˆ โ–„โ–„โ–„โ–„โ–„ โ–ˆโ–ˆโ–„โ–„ โ–€โ–ˆ  โ–€  โ–ˆโ–€โ–ˆ โ–„โ–„โ–„โ–„โ–„ โ–ˆโ–ˆโ–ˆโ–ˆ
โ–ˆโ–ˆโ–ˆโ–ˆ โ–ˆ   โ–ˆ โ–ˆโ–€โ–„  โ–ˆโ–€โ–€โ–„โ–€โ–€โ–ˆโ–ˆ โ–ˆ โ–ˆ   โ–ˆ โ–ˆโ–ˆโ–ˆโ–ˆ
โ–ˆโ–ˆโ–ˆโ–ˆ โ–ˆโ–„โ–„โ–„โ–ˆ โ–ˆโ–„โ–€ โ–ˆโ–„โ–„โ–„ โ–ˆโ–€โ–€โ–„ โ–ˆ โ–ˆโ–„โ–„โ–„โ–ˆ โ–ˆโ–ˆโ–ˆโ–ˆ
โ–ˆโ–ˆโ–ˆโ–ˆโ–„โ–„โ–„โ–„โ–„โ–„โ–„โ–ˆโ–„โ–€โ–„โ–ˆ โ–€ โ–ˆโ–„โ–ˆ โ–€โ–„โ–ˆโ–„โ–„โ–„โ–„โ–„โ–„โ–„โ–ˆโ–ˆโ–ˆโ–ˆ
โ–ˆโ–ˆโ–ˆโ–ˆโ–„โ–„โ–€โ–ˆโ–ˆโ–„โ–„ โ–€โ–„ โ–ˆโ–„โ–ˆโ–€ โ–€โ–„โ–€โ–€โ–„โ–€โ–ˆโ–€ โ–„โ–€โ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆ
โ–ˆโ–ˆโ–ˆโ–ˆ  โ–€โ–„โ–€ โ–„โ–€ โ–„โ–€ โ–„โ–„ โ–„ โ–ˆโ–ˆโ–ˆ โ–ˆโ–ˆ โ–ˆ โ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆ
โ–ˆโ–ˆโ–ˆโ–ˆโ–€โ–€ โ–„โ–„โ–ˆโ–„โ–„โ–„โ–„ โ–ˆ โ–ˆ โ–€โ–ˆโ–ˆโ–ˆโ–€โ–„โ–€  โ–€โ–€โ–ˆ  โ–ˆโ–ˆโ–ˆโ–ˆ
โ–ˆโ–ˆโ–ˆโ–ˆโ–€โ–„โ–€ โ–€ โ–„โ–ˆโ–€โ–„โ–ˆโ–ˆ โ–€โ–€โ–„โ–ˆโ–ˆโ–€โ–ˆโ–€โ–„โ–€โ–€  โ–€โ–ˆโ–€โ–ˆโ–ˆโ–ˆโ–ˆ
โ–ˆโ–ˆโ–ˆโ–ˆโ–€ โ–ˆโ–€ โ–„โ–„โ–ˆโ–ˆ โ–ˆโ–€โ–„โ–„โ–„   โ–„โ–€ โ–„โ–€ โ–€ โ–„โ–€โ–€โ–ˆโ–ˆโ–ˆโ–ˆ
โ–ˆโ–ˆโ–ˆโ–ˆ โ–„ โ–€โ–ˆ โ–„โ–ˆโ–„ โ–€ โ–„โ–ˆโ–ˆโ–„โ–€โ–ˆโ–ˆโ–„ โ–€โ–€โ–€โ–ˆ โ–„โ–€ โ–ˆโ–ˆโ–ˆโ–ˆ
โ–ˆโ–ˆโ–ˆโ–ˆโ–„โ–ˆโ–„โ–„โ–„โ–ˆโ–„โ–„ โ–ˆโ–„โ–„ โ–€โ–ˆ โ–ˆโ–„โ–ˆโ–€ โ–„โ–„โ–„ โ–ˆโ–„โ–ˆโ–„โ–ˆโ–ˆโ–ˆโ–ˆ
โ–ˆโ–ˆโ–ˆโ–ˆ โ–„โ–„โ–„โ–„โ–„ โ–ˆ โ–„โ–€โ–€โ–€โ–€โ–„ โ–ˆโ–„โ–„  โ–ˆโ–„โ–ˆ โ–ˆโ–ˆโ–ˆโ–€โ–ˆโ–ˆโ–ˆโ–ˆ
โ–ˆโ–ˆโ–ˆโ–ˆ โ–ˆ   โ–ˆ โ–ˆโ–ˆโ–€โ–„ โ–ˆโ–„โ–ˆ โ–€โ–ˆโ–€   โ–„โ–„โ–„โ–ˆโ–€โ–„ โ–ˆโ–ˆโ–ˆโ–ˆ
โ–ˆโ–ˆโ–ˆโ–ˆ โ–ˆโ–„โ–„โ–„โ–ˆ โ–ˆโ–€โ–„ โ–ˆ  โ–ˆ  โ–ˆโ–ˆโ–„โ–„โ–€ โ–€โ–„โ–ˆ โ–„โ–€โ–ˆโ–ˆโ–ˆโ–ˆ
โ–ˆโ–ˆโ–ˆโ–ˆโ–„โ–„โ–„โ–„โ–„โ–„โ–„โ–ˆโ–„โ–ˆโ–„โ–„โ–ˆโ–ˆโ–ˆโ–„โ–ˆโ–„โ–ˆโ–„โ–ˆโ–„โ–ˆโ–„โ–ˆโ–ˆโ–„โ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆ
โ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆ
โ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆ

Installation

From git

git clone https://github.com/tadfisher/pass-otp
cd pass-otp
sudo make install

or, to install in the user dir (following the standard XDG base directory paths):

$ echo $XDG_DATA_HOME
/home/$USER/.local/share

$ export PASSWORD_STORE_ENABLE_EXTENSIONS=true
$ export PASSWORD_STORE_EXTENSIONS_DIR=$XDG_DATA_HOME/password-store/.extensions
$ export BASH_COMPLETION_USER_DIR=$XDG_DATA_HOME/bash-completion/completions

$ PREFIX=$XDG_DATA_HOME \
    LIBDIR=$PREFIX \
    BASHCOMPDIR=$BASH_COMPLETION_USER_DIR \
    make install

Arch Linux

pass-otp is available in the [community] repository:

pacman -S pass-otp

Debian

pass-otp is available in buster and sid repositories with the package-name pass-extension-otp according to tracker:

apt install pass-extension-otp

Fedora

pass-otp is available in Fedora 28 and up, under the package name pass-otp according to Fedora Apps.

dnf install pass-otp

Gentoo Linux

emerge app-admin/pass-otp

Nix/NixOS

The following expression builds pass with the pass-otp extension:

with pkgs;
pass.withExtensions (exts: [ exts.pass-otp ])

The above can be installed imperatively via nix-env or ran in a temprorary environment via nix-shell.

macOS

Brew

brew install pass-otp

Macports.org

sudo port install pass-otp

openSUSE

zypper install pass-otp

Crux Linux

pass-otp in this port

# MK ports collection
#
# https://git.malte-kiefer.de/crux-ports/

ROOT_DIR=/usr/ports/mk
URL=https://git.malte-kiefer.de/crux-ports/plain

Requirements

  • pass 1.7.0 or later for extension support
  • oathtool or Pass::OTP for generating 2FA codes
  • qrencode for generating QR code images

Build requirements

  • make test
    • pass >= 1.7.0
    • git
    • oathtool
    • expect
    • make (GNU make)
  • make lint
    • shellcheck

Browser Support

passff >= 1.6.0 now supports using pass-otp to fill login forms.

Migrating from pass-otp 0.1

pass-otp has switched to storing OTP tokens in the standard Key Uri Format. You'll need to edit any saved tokens and change them to this format. For example:

$ pass edit totp-secret

Old format:

otp_secret: AAAAAAAAAAAAAAAA
otp_type: totp
otp_algorithm: sha1
otp_period: 30
otp_digits: 6

New format:

otpauth://totp/totp-secret?secret=AAAAAAAAAAAAAAAA&issuer=totp-secret

Note that the following default values do not need to be specified in the URI:

parameter default
algorithm sha1
period 30
digits 6

Migrating from Google Authenticator

Warning: This method is provided as a means to transport your TOTP tokens to other devices, disconnected from your single factor authentication part. If you add those secrets into the same basket of eggs, you will be defeating the whole purpose of the multi factor authentication mantra. Please think it through before running this migration.

If you read the warning paragraph above, keep calm and move on with the migration.

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].