- Install Authy from Chrome Web Store
- Open Authy and log in, so you can see the codes being generated for you. Keep it open.
- Go to Extensions page in your browser (
chrome://extensions/
or Menu -> More tools -> Extensions) - Tick developer mode in the top right corner
- Go to the Authy App details and click on
main.html
at the 'Inspect views' section - Chrome developer tools with Console selected should open. If it didn't, go to the Console tab.
- Paste following and press enter:
appManager.getModel().forEach(function(i){
if(i.markedForDeletion === false){
console.group(i.name);
console.log('TOTP URI: '+'otpauth://totp/'+encodeURIComponent(i.name)+'?secret='+i.decryptedSeed+'&issuer='+i.accountType);
console.log('secret: '+i.decryptedSeed);
console.groupEnd();
}
});
- Each of your google authenticator secrets will be displayed in two forms: TOTP URI and just the secret. Usually, you can import them into your new authenticator app by URI, but if that doesn't work you can also just copy-paste secrets directly.
- Close opened window and developer tools.
- Disable Authy app on Chrome or remove it
- Disable Developer mode
NB: This code will not display the secret of Authy itself (for Authy dashboard), because it's in a bit different format. Look at the upstream gist if you need this secret to be exported too (that code can also generate QR codes for you)