otpauth-recovery
v0.0.3
Published
Generate QR codes for otpauth URLs
Downloads
4
Readme
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).