Escaping Authy: migrating OTP tokens
I’m getting a new phone and decided to stop using Authy and use Aegis Authenticator instead. Authy’s been fairly good but I worry about it as a product. It’s not Twilio’s business. Also it’s closed source. Aegis Authenticator is a nice open source alternative with thoughtful features. Its main drawback is it’s Android-only; no iOS, no desktop apps. Works for me but may not for you.
Authy was an improvement because it offered a way to migrate data to a different Authy install. Unfortunately it does not support a proper open export option. For security, they say, which may be true but also means you’re locked in. So instead of having a managed export we’re reduced to using some scary third party Go program or Javascript pasted in from a Gist. As if that were more secure.
I went with the Javascript; the method that worked for me is documented here. (See the discussion below for updates.) This is an update on an older method that relied on hacking the Chrome extension to get the data out of it. That extension no longer exists but happily the desktop app is just a wrapper for a webapp, a wrapper that supports a debug console. The method boils down to “get to the console and then paste a script which will render a bunch of QR codes you can scan”. Scary and hacky, but it seems to work.
I was able to do all this with Authy Desktop for Windows using Google Chrome. Firefox might or might not work; I couldn’t figure out how to get to the console for the main.html there so using Chrome was easier. I then scanned the resulting QR codes into Aegis and it’s working.
Aegis is nice, btw. It supports various options to backup (encrypted) to JSON files that presumably anything could read.
Update: once you’ve migrated you probably want to delete your Authy account to remove the data they have in cloud storage. It’s pretty easy and they have a thoughtful tool, although note there’s a 30 day wait for it to actually be deleted. The one wrinkle is Authy also has a special unique 2FA protocol, you can recognize it from the 7 digit codes. my529 uses it. I was able to migrate this code to Aegis and log in with it. But Authy’s site and the existence of online authentication protocols makes me think deleting your Authy account may also disable this token behind the scenes. The Authy app recommends you disable it yourself; I changed my529 to use a standard HOTP style token.