Skip to content

Instantly share code, notes, and snippets.

@krushik
Forked from gboudreau/AuthyToOtherAuthenticator.md
Last active October 11, 2018 10:40
Show Gist options
  • Save krushik/b752b4a56fd501d20861f016618d5bf9 to your computer and use it in GitHub Desktop.
Save krushik/b752b4a56fd501d20861f016618d5bf9 to your computer and use it in GitHub Desktop.
Export TOTP secrets from Authy

Exporting Authy TOTP (google authenticator) secrets to other authenticators


  1. Install Authy from Chrome Web Store
  2. Open Authy and log in, so you can see the codes being generated for you. Keep it open.
  3. Go to Extensions page in your browser (chrome://extensions/ or Menu -> More tools -> Extensions)
  4. Tick developer mode in the top right corner
  5. Go to the Authy App details and click on main.html at the 'Inspect views' section
  6. Chrome developer tools with Console selected should open. If it didn't, go to the Console tab.
  7. 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();
}
});
  1. 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.
  2. Close opened window and developer tools.
  3. Disable Authy app on Chrome or remove it
  4. 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)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment