# Google Authenticator

**Google Authenticator** 是 Google LLC 推出的一款移动身份验证应用，用于生成一次性验证码，作为登录在线账户时的第二步验证。验证码在手机本地生成，因此即使没有网络或蜂窝连接也能使用，该应用同时支持基于时间和基于计数器的验证码生成。<sup>[1](https://www.google.com/mobile/authenticator/)</sup> 在 Google Play 上，该应用的下载量超过 1 亿次，约 67.9 万条评价给出 3.9 星评分。<sup>[1](https://www.google.com/mobile/authenticator/)</sup>

| 关键事实 | 详情 |
|---|---|
| 用途 | 在登录时增加第二步验证：除密码外，用户还需输入应用生成的验证码<sup>[1](https://www.google.com/mobile/authenticator/)</sup> |
| 离线运行 | 验证码在手机上生成，无需网络或蜂窝连接<sup>[1](https://www.google.com/mobile/authenticator/)</sup> |
| 验证码类型 | 同时支持基于时间和基于计数器的一次性验证码生成<sup>[1](https://www.google.com/mobile/authenticator/)</sup> |
| 底层算法 | 基于时间的一次性密码遵循 RFC 6238，该标准建议默认时间步长为 30 秒<sup>[2](https://datatracker.ietf.org/doc/html/rfc6238)</sup> |
| 云同步 | 自 2023 年 4 月起，验证码可同步至用户的 Google 账户并跨设备使用<sup>[3](https://security.googleblog.com/2023/04/google-authenticator-now-supports.html?hl=nb_NO)</sup> |
| 账户可选 | 该应用无需 Google 账户即可使用，此时验证码仅存储在设备上<sup>[4](https://support.google.com/accounts/answer/1066447?hl=En)</sup> |
| 抗钓鱼能力 | 根据 NIST SP 800-63B，依赖手动输入验证器输出的验证器（包括 OTP 验证器）不被视为抗钓鱼<sup>[5](https://pages.nist.gov/800-63-4/sp800-63b.html?trk=public_post_comment-text)</sup> |

## 验证码的生成方式

该应用基于时间的模式实现了[互联网工程任务组](https://www.edgepedia.org/zh/internet-engineering-task-force)发布的 RFC 6238《基于时间的一次性密码（TOTP）》算法。TOTP 扩展了基于 HMAC 的一次性密码（HOTP）算法，用一个时间值替代递增计数器：证明方与验证方共享一个密钥，密码按 HOTP 算法作用于自参考时间以来经过的时间步数计算得出。<sup>[2](https://datatracker.ietf.org/doc/html/rfc6238)</sup> 该标准建议默认时间步长为 30 秒，这是在安全性与可用性之间权衡的结果；步长越大，泄露的验证码被攻击者利用的时间窗口就越宽，步长越小，用户则需等待下一个有效验证码。<sup>[2](https://datatracker.ietf.org/doc/html/rfc6238)</sup>

由于双方均从共享密钥和时钟推导验证码，应用在生成验证码时无需联网。验证服务器通常允许有限的传输延迟，RFC 6238 建议最多接受一个时间步长的网络延迟；在 30 秒步长、允许回退两步的情况下，可容忍的最大时钟漂移约为 89 秒。<sup>[2](https://datatracker.ietf.org/doc/html/rfc6238)</sup> Google 自己的故障排除指南也体现了这一设计：如果验证码无效，用户应检查设备时间是否已同步，以及是否与本地时区一致。<sup>[4](https://support.google.com/accounts/answer/1066447?hl=En)</sup>

## 设置与账户管理

添加账户通过扫描二维码完成，应用将其列为正确设置验证码的快捷方式；为此应用会请求相机权限。<sup>[1](https://www.google.com/mobile/authenticator/)</sup> 该应用可在一处管理多个账户，验证码可通过在旧设备上生成导出二维码、在新设备上扫描该二维码的方式在设备间迁移。<sup>[1](https://www.google.com/mobile/authenticator/)</sup> Google 的帮助文档详细描述了手动迁移流程：旧设备在“转移验证码”菜单下生成一个或多个二维码，新设备在同一菜单下导入。<sup>[4](https://support.google.com/accounts/answer/1066447?hl=En)</sup>

**同步模式与仅本地模式。** 登录 Google 账户后，验证码会在登录新设备时自动同步。用户也可以选择点击“不使用账户”，这会将验证码从其所有 Google 账户中移除，仅存储在该设备上，其他设备将无法使用。<sup>[4](https://support.google.com/accounts/answer/1066447?hl=En)</sup> 删除 Google [Authenticator](https://www.edgepedia.org/zh/authenticator) 服务会将验证码从 Google 账户及所有已同步设备中移除，但不会删除账户本身。<sup>[4](https://support.google.com/accounts/answer/1066447?hl=En)</sup>

该应用还提供隐私屏幕功能，要求通过设备验证（如 PIN 码、图案或生物识别提示）后才能打开应用。<sup>[4](https://support.google.com/accounts/answer/1066447?hl=En)</sup> 对于设备丢失或被盗的情况，Google 建议远程擦除设备，或者在验证码已同步的情况下从 Google 账户中移除该设备；如果验证码未同步，用户必须访问所有设置了该应用的网站，逐一移除并重新关联验证码。<sup>[4](https://support.google.com/accounts/answer/1066447?hl=En)</sup>

## 安全定位

在[网络安全和基础设施安全局](https://www.edgepedia.org/zh/cybersecurity-and-infrastructure-security-agency)（CISA）的指南中，验证器应用处于中间层级。在 CISA 对多因素认证方式从最安全到最不安全的排名中，物理安全密钥对钓鱼的防护最佳，其次是带数字匹配的验证器应用，再次是每 30 秒生成一次性验证码的验证器应用；短信或邮件验证码排名最低。<sup>[6](https://www.cisa.gov/audiences/small-and-medium-businesses/secure-your-business/require-multifactor-authentication)</sup> CISA 建议企业以抗钓鱼的多因素认证方式为目标。<sup>[6](https://www.cisa.gov/audiences/small-and-medium-businesses/secure-your-business/require-multifactor-authentication)</sup>

应用生成的验证码为何达不到抗钓鱼标准，NIST 特别出版物 800-63B 给出了说明：抗钓鱼要求单因素或多因素密码学认证，而涉及手动输入验证器输出的验证器（如带外验证器和 OTP 验证器）被明确排除在外，因为手动输入无法将输出与被认证的特定会话绑定。冒充的验证方可以将验证码转发给真正的验证方，从而完成登录。<sup>[5](https://pages.nist.gov/800-63-4/sp800-63b.html?trk=public_post_comment-text)</sup> NIST 认可两种实现抗钓鱼的方法：通道绑定和验证方名称绑定，两者都依赖密码学认证而非手动输入的验证码。<sup>[5](https://pages.nist.gov/800-63-4/sp800-63b.html?trk=public_post_comment-text)</sup> Google 自己的指南则建议有更高安全需求的用户使用通行密钥和安全密钥，作为两步验证的补充或替代方式。<sup>[4](https://support.google.com/accounts/answer/1066447?hl=En)</sup>

## 云同步与加密问题

2023 年 4 月，Google 宣布 Authenticator 将支持 Google 账户同步，并将这一变化定位为在手机丢失时仍能获取验证码的方式，同时公司正推动迈向无密码的未来。<sup>[3](https://security.googleblog.com/2023/04/google-authenticator-now-supports.html?hl=nb_NO)</sup>

这一事件凸显了恢复性与保密性之间的权衡。云同步可保护用户在更换或丢失设备时免于被锁定，这也是 Google 在其帮助文档中提到的优势。<sup>[4](https://support.google.com/accounts/answer/1066447?hl=En)</sup> 偏好仅设备存储的用户可以在不使用账户的情况下运行 Google Authenticator，代价是设备丢失或被擦除后需要手动迁移或逐站点重新注册。<sup>[4](https://support.google.com/accounts/answer/1066447?hl=En)</sup>

## 在多因素认证选项中的位置

Google Authenticator 是众多基于同一 TOTP 标准构建的软件验证器之一，该标准本身是厂商中立的：RFC 6238 规定了任何合规应用和服务器都需实现的算法、时间步长和重新同步行为。<sup>[2](https://datatracker.ietf.org/doc/html/rfc6238)</sup> 基于对出现可疑活动的 Microsoft Azure Active Directory 账户的分析，关于多因素认证有效性的实证研究发现，专用多因素认证应用的表现优于基于短信的认证，不过两者相比完全不使用多因素认证都显著提升了安全性。<sup>[7](https://arxiv.org/abs/2305.00945)</sup> 在这一格局中，Google Authenticator 的显著特点是其离线验证码生成、基于[二维码](https://www.edgepedia.org/zh/qr-code)的设置与迁移，以及自 2023 年起在 Google 账户同步与纯本地存储之间的选择。<sup>[1](https://www.google.com/mobile/authenticator/)</sup><sup> • </sup><sup>[4](https://support.google.com/accounts/answer/1066447?hl=En)</sup>

## References

1. [Google Authenticator – Apps on Google Play, Google LLC](https://www.google.com/mobile/authenticator/)
2. [RFC 6238: TOTP: Time-Based One-Time Password Algorithm, IETF (May 2011)](https://datatracker.ietf.org/doc/html/rfc6238)
3. [Google Authenticator now supports Google Account synchronization, Google Online Security Blog (April 2023)](https://security.googleblog.com/2023/04/google-authenticator-now-supports.html?hl=nb_NO)
4. [Get verification codes with Google Authenticator, Google Account Help](https://support.google.com/accounts/answer/1066447?hl=En)
5. [NIST Special Publication 800-63B: Digital Identity Guidelines, Authentication and Lifecycle Management](https://pages.nist.gov/800-63-4/sp800-63b.html?trk=public_post_comment-text)
6. [Require Multifactor Authentication, CISA](https://www.cisa.gov/audiences/small-and-medium-businesses/secure-your-business/require-multifactor-authentication)
7. [How effective is multifactor authentication at deterring cyberattacks?, arXiv (2023)](https://arxiv.org/abs/2305.00945)

---
*Initially written Sep 17, 2026 · Reviewed: Sep 30, 2026; Oct 15, 2026 · Edited: Oct 15, 2026 · Last review: Oct 15, 2026*

Topic: 技术与人造世界 › 计算技术与数字系统 › 软件与编程 › Named software products and platforms › Office and business software › Titles symbols to M › Titles 1 to G

Copyright 2026 Edgepedia

License: Edgepedia Community License 1.0, https://www.edgepedia.org/edgepedia/license

Source: https://www.edgepedia.org/zh/google-authenticator

English original: https://www.edgepedia.org/google-authenticator
