跳转至

Microsoft Authenticator 安卓导出

Microsoft Authenticator 安卓版不支持导出,只能自己提取数据库。

提取数据库

使用 MuMu 模拟器,在 Root Explorer 中将 /data/data/com.azure.authenticator/databases 里的 PhoneFactorPhoneFactor-shmPhoneFactor-wal 拷贝到 /sdcard/$MuMu12Shared 中,即可导出到电脑的 MuMu 共享文件夹。

查看密钥

使用 DB Browser for SQLite 打开数据库,在 accounts 表中可以看到所有的账号和密钥。

表

  • name:发布者
  • username:账号
  • oauth_secret_key:密钥

还原 TOTP URI

nameusernameoauth_secret_key 填入下面的 URI。

otpauth://totp/<name>:<username>?secret=<oauth_secret_key>&issuer=<name>

微软的 TOTP 比较特殊,它的位数是 8 位,并且密钥使用 Base64 保存。要把 oauth_secret_key 从 Base64 转成 Base32 再填入下面的 URI。

otpauth://totp/Microsoft:<username>?secret=<oauth_secret_key>&issuer=Microsoft&digits=8

参考

反向链接