Google身 份验证器
2010 | |
github | |
编程语言 |
|
Android, iOS, BlackBerry OS | |
许可协议 |
Google
Google
典型 使用 情 况
[编辑]为了
实现
[编辑]- Windows Phone 7.5/8/8.1/10: Microsoft Authenticator[6] Virtual TokenFactor[7]
- Windows Mobile: Google Authenticator for Windows Mobile[8]
- Java CLI: Authenticator.jar[9]
- Java GUI: JAuth[10] FXAuth[11]
- J2ME: gauthj2me[12] lwuitgauthj2me[13] Mobile-OTP (仅
支持 中 文 )[14] totp-me[15] - Palm OS: gauthj2me[16]
- Python: onetimepass[17], pyotp[18]
- PHP: GoogleAuthenticator.php[19]
- Ruby: rotp,[20] twofu[21]
- Rails: active_model_otp[22] (
第 三 方 实现) - webOS: GAuth[23]
- Windows: gauth4win[24] MOS Authenticator[25] WinAuth[26]
- .NET: TwoStepsAuthenticator[27]
- HTML5: html5-google-authenticator[28]
- MeeGo/Harmattan (Nokia N9): GAuth[29]
- Sailfish OS: SGAuth,[30] SailOTP[31]
- Apache: Google Authenticator Apache Module[32]
- PAM: Google Pluggable Authentication Module[33] oauth-pam[34]
- Backend: LinOTP (
后 端 管理 使用 Python实现) - Chrome/Chrome OS: Authenticator[35]
- iOS: OTP Auth[36]
- privacyIDEA 认证
系 统。
技 术说明
[编辑]一段哈希值被提取出来并转换为6
生成 一次性密码的伪代码
[编辑] function GoogleAuthenticatorCode(string secret)
key := base32decode(secret)
message := floor(current Unix time / 30)
hash := HMAC-SHA1(key, message)
offset := last nibble of hash
truncatedHash := hash[offset..offset+3] //4 bytes starting at the offset
Set the first bit of truncatedHash to zero //remove the most significant bit
code := truncatedHash mod 1000000
pad code with 0 until length of code is 6
return code
生成 事件 性 或 计数性 的 一次性密码伪代码
[编辑] function GoogleAuthenticatorCode(string secret)
key := base32decode(secret)
message := counter encoded on 8 bytes
hash := HMAC-SHA1(key, message)
offset := last nibble of hash
truncatedHash := hash[offset..offset+3] //4 bytes starting at the offset
Set the first bit of truncatedHash to zero //remove the most significant bit
code := truncatedHash mod 1000000
pad code with 0 until length of code is 6
return code
Android上 的 开源情 况
[编辑]
Google
“此开
源 计划包含 了 2.21版本 的 源 代 码。随 后 的 版本 中 包含 了 Google特有 的 工作 流 程 ,与 此项目 无关。”
Android
參 見
[编辑]参考 文献
[编辑]- ^ Google Is Making Your Account Vastly More Secure With Two-Step Authentication - TechCrunch. TechCrunch. 2010-09-20 [2016-03-12]. (
原始 内容 存 档于2020-12-02). - ^ GitHub - google/google-authenticator: Open source version of Google Authenticator (except the Android app). GitHub. Google. [2017-10-15]. (
原始 内容 存 档于2021-01-26) (英 语).These implementations support the HMAC-Based One-time Password (HOTP) algorithm specified in RFC 4226 and the Time-based One-time Password (TOTP) algorithm specified in RFC 6238.
- ^ Willis, Nathan (22 January 2014)."FreeOTP multi-factor authentication (页面
存 档备份,存 于互联网档案 馆)". LWN.net. Retrieved 10 August 2015. - ^ https://play.google.com/store/apps/details?id=com.google.android.apps.authenticator2 (页面
存 档备份,存 于互联网档案 馆) A - ^ Google Authenticator. App Store. [2017-10-15]. (
原始 内容 存 档于2015-12-22). - ^ Authenticator. 4 April 2013 [2017-10-15]. (
原始 内容 存 档于2019-10-17). - ^ Virtual TokenFactor. 26 February 2012 [2017-10-15]. (
原始 内容 存 档于2013-09-08). - ^ [APP]Google Authenticator for Windows Mobile. XDA Developers. [2017-10-15]. (
原始 内容 存 档于2019-04-19). - ^ http://blog dot jamesdotcuff dot net. [2017-10-15]. (
原始 内容 存 档于2014-08-01). - ^ mclamp/JAuth. GitHub. [2017-10-15]. (
原始 内容 存 档于2015-08-04). - ^ kamenitxan/FXAuth. GitHub. [2017-10-15]. (
原始 内容 存 档于2020-09-05). - ^ gauthj2me - Google Authentification in Java Mobile, j2me - Google Project Hosting. [2017-10-15]. (
原始 内容 存 档于2016-01-06). - ^ lwuitgauthj2me - Google Authenticator for J2ME phones - Google Project Hosting. [2017-10-15]. (
原始 内容 存 档于2016-03-16). - ^ chunlinyao / mobile-otp — Bitbucket. [2017-10-15]. (
原始 内容 存 档于2017-10-15). - ^ totp-me - TOTP for Java ME - Google authenticator. [2017-10-15]. (
原始 内容 存 档于2018-01-05). - ^ gauth.prc - gauthj2me - Google Authenticator for Palm OS (converted from java) - Google Authentification in Java Mobile, j2me - Google Project Hosting. [2017-10-15]. (
原始 内容 存 档于2016-01-06). - ^ tadeck/onetimepass. GitHub. [2017-10-15]. (
原始 内容 存 档于2020-10-27). - ^ pyotp/pyotp. GitHub. [2017-10-15]. (
原始 内容 存 档于2018-06-11). - ^ chregu/GoogleAuthenticator.php. GitHub. [2017-10-15]. (
原始 内容 存 档于2020-09-29). - ^ rotp - RubyGems.org - your community gem host. [2017-10-15]. (
原始 内容 存 档于2019-07-11). - ^ ukazap/twofu. GitHub. [2017-10-15]. (
原始 内容 存 档于2020-09-12). - ^ heapsource/active_model_otp. GitHub. [2017-10-15]. (
原始 内容 存 档于2020-12-05). - ^ GAuth. [2017-10-15]. (
原始 内容 存 档于2020-10-20). - ^ gauth4win - Google Authenticator for windows - Google Project Hosting. [2017-10-15]. (
原始 内容 存 档于2016-01-11). - ^ MOS Authenticator Home. [2017-10-15]. (
原始 内容 存 档于2020-02-17). - ^ winauth - Windows Authenticator for Battle.net / World of Warcraft / Guild Wars 2 / Glyph / WildStar / Google / Bitcoin - Google Project Hosting. [2017-10-15]. (
原始 内容 存 档于2015-05-17). - ^ glacasa/TwoStepsAuthenticator. GitHub. [2017-10-15]. (
原始 内容 存 档于2020-12-05). - ^ gbraad/html5-google-authenticator. GitHub. [2017-10-15]. (
原始 内容 存 档于2014-07-05). - ^ Techtransit. Nokia Store: Download GAuth and many other games, wallpaper, ringtones and mobile apps on your Nokia phone. [2017-10-15]. (
原始 内容 存 档于2014-07-12). - ^ SGAuth. [2017-10-15]. (
原始 内容 存 档于2019-07-11). - ^ SailOTP. [2017-10-15]. (
原始 内容 存 档于2021-01-10). - ^ google-authenticator-apache-module - Apache Module for Two-Factor Authentication via Google Authenticator - Google Project Hosting. [2017-10-15]. (
原始 内容 存 档于2015-11-19). - ^ google-authenticator - Two-step verification - Google Project Hosting. [2017-10-15]. (
原始 内容 存 档于2015-02-10). - ^ oauth-pam - PAM for use with OAuth Websites - Google Project Hosting. [2017-10-15]. (
原始 内容 存 档于2016-08-08). - ^ Authenticator. [2017-10-15]. (
原始 内容 存 档于2019-10-17). - ^ OTP Auth. App Store. [2017-10-15]. (
原始 内容 存 档于2019-04-12). - ^ https://tools.ietf.org/html/c#section-4[
永久 失效 連結 ] - ^ google/google-authenticator-android: Open source fork of the Google Authenticator Android app. GitHub. 16 May 2022.
- ^ FreeOTP. [2017-10-15]. (
原始 内容 存 档于2020-11-12). - ^ kaie/otp-authenticator-android. GitHub. [2017-10-15]. (
原始 内容 存 档于2020-11-22).
外部 链接
[编辑]- Google帮助
上 的 Google身 份验证器 (页面存 档备份,存 于互联网档案 馆) - GitHub
上 的 Google身 份验证器 (页面存 档备份,存 于互联网档案 馆)旧版 本源 代 码 -
在 Stack Overflow上 使用 Python实现的 Google身 份验证器 (页面存 档备份,存 于互联网档案 馆) - F-Droid
資源 庫 上 的 Android軟體套件Authenticator
|