0.0.3 • Published 7 years ago

otpauth-recovery v0.0.3

Weekly downloads
6
License
MPL-2.0
Repository
github
Last release
7 years ago

otpauth-recovery

Generate QR codes for otpauth URLs.

Installation

    npm install -g otpauth-recovery

Usage

Create a json file containing an array of one or more entries, e.g.,

    [ 
      { "url": "otpauth://totp/issuer:accountName?secret=ABCDEFGHIJKLMNOPQRSTUVXYZ234567" }
    ]

The url property of each entry must conform to the OTPauth URI format.

Now run:

    % otpauth-recovery input.json > /Volumes/NO\ Name/output.html

The output file should be saved to a "secure USB" stick for initializing your OTP device and providing a recovery mechanism.

The output html file contains a QR code that corresponds to the url property, e.g.,

The ideal set-up is to then store the OTP credentials on a hardware device (e.g., a YubiKey 4 or YubiKey 4C, using a program (e.g., Yubico Authenticator).