From 5019d28d69831a6e09700d039ee91f23a784bcd3 Mon Sep 17 00:00:00 2001 From: Alex Zorin Date: Sat, 13 Jul 2019 17:35:00 +1000 Subject: [PATCH] Update README with importing hint --- .gitignore | 3 ++- README.md | 15 ++++++++++++++- 2 files changed, 16 insertions(+), 2 deletions(-) diff --git a/.gitignore b/.gitignore index 9e67553..b96bb4e 100644 --- a/.gitignore +++ b/.gitignore @@ -1,2 +1,3 @@ /app.js -/authy-export \ No newline at end of file +/authy-export +/qr.sh diff --git a/README.md b/README.md index 6118bfb..29569da 100644 --- a/README.md +++ b/README.md @@ -16,7 +16,7 @@ Please be careful. You can get your Authy account suspended very easily by using ### authy-export This program will enrol itself as an additional device on your Authy account and export all of your TOTP tokens in [Key URI Format](https://github.com/google/google-authenticator/wiki/Key-Uri-Format). -To use it: +**To use it:** 1. Run `authy-export` 2. The program will prompt you for your phone number country code (e.g. 1 for United States) and your phone number. This is the number that you used to register your Authy account originally. @@ -25,6 +25,19 @@ To use it: 5. If the program is able to fetch your TOTP encrypted database, it will prompt you for your Authy backup password. This is required to decrypt the TOTP secrets for the next step. 6. The program will dump all of your TOTP tokens in URI format, which you can use to import to other applications. +**How do you then import it into another app?** + +Up to you, depends on the app. If the app uses QR scanning, you can try stick all the dumped URIs into a file (`tokens`) and then scan each QR code from your terminal, e.g.: + +```bash +#!/usr/bin/env bash +cat tokens | while IFS= read -r line; do + clear + echo -n "$line" | qrencode -t UTF8 + read -p $"Press any key to continue" key < /dev/tty +done +``` + ## LICENSE Copyright Alex Zorin 2019