Skip to content
This repository has been archived by the owner on Feb 1, 2024. It is now read-only.

brave-experiments/otpauth-recovery

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

Generate recovery QR codes for otpauth URLs

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published