(Translated by https://www.hiragana.jp/)
Google身份验证器 - 维基百科,自由的百科全书 とべ转到内容ないよう

Google份验证器

本页使用了标题或全文手工转换
维基百科ひゃっか自由じゆうてき百科ひゃっかぜん
Google份验证器
開發かいはつしゃGoogle
くび发布2010ねん9がつ20日はつか,​14ねんまえ​(2010-09-20[1]
みなもとだい码库github.com/google/google-authenticator
编程语言
操作そうさけいAndroid, iOS, BlackBerry OS
平台ひらだいうつり动设备
许可协议私有しゆう许可协议(早期そうき版本はんぽんApache License 2.0

Google份验证器いちTOTPあずかHOTPてき两步验证软件れいぱいえいAuthenticator,此软けんようGoogleてき认证ふく务。此项ふく务所使用しようてき算法さんぽうやめれつRFC 6238 RFC 4226 なか[2]

Google份验证器给予よう户一个六位到八位的いちせいみつよう于进ぎょうとう录Googleある其他站点时的附加ふか验证。其同样可以给だい三方应用生成口令,れいみつ管理かんりいんある网络かたさきぜん版本はんぽんてきGoogle份验证器开放げんだい码,ただしこれきさきてき版本はんぽん以专ゆう软件てき形式けいしきこう开。[3]

典型てんけい使用しようじょう

[编辑]
きゅうしるべ

よう通常つうじょうはた份验证ほどじょあんそうざい智能ちのうしゅ机上きじょう,为了とう录到使用しよう两步验证てき网站あるふく务上,よう户提供用きょうよう名和なわひそか码后运行份验证器进行额外验证。 该应ようほどじょかい生成せいせい六位数的一次性密码,不同ふどう网站そく可能かのうかい生成せいせいどういちみつ码。

为了使份验证器正常せいじょう工作こうさくあんそう运行ぜん网站必须むこうよう提供ていきょう一组共享密钥。这组みつ钥将かいよう未来みらいてき所有しょゆうとうにゅう请求。

ざい两步验证てき护之,仅拥有用ゆうよう户名みつ码已不足ふそく以黑にゅう账户。おさむ击者需要じゅよう这组どもとおるみつ钥或しゃ拿到进行两步验证てきうつり动设备。另一种方法是进行ちゅう间人おさむわかよう户的电脑侵入しんにゅう,则用户名、みつ码及一次性密码都将被木马所捕获,ずいきさきおさむ击者そく利用りよう马进ぎょうとう录、监听あるおさむあらためよう户与网站てき通信つうしん

实现

[编辑]

たに提供ていきょうあんたく[4]くろいちごiOS[5]版本はんぽんてき份验证器。どう时也ゆうだいさんぽう版本はんぽん

  • 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えいLinOTPきさきはし管理かんり使用しようPython实现)
  • Chrome/Chrome OS: Authenticator[35]
  • iOS: OTP Auth[36]
  • privacyIDEA 认证けい统。

わざ术说あきら

[编辑]

ふく提供ていきょうしょう为每个用户生成せいせい80てきみつ钥(しか而RFC 4226 §4要求ようきゅう使用しよう128并建议使用しよう160みつ钥)。[37] 它以16、26あるもの32base32てきくしまたある维码てき方式ほうしき提供ていきょうきゃく户端使用しよう此密钥生成せいせいHMAC-SHA1。经过HMAC处理过的しんいき可能かのう为:

  • UNIX时间TOTPおこりはじめきさきしょ经过てき30びょう周期しゅうきすう
  • ずいごと个新みつ码所增加ぞうかてき计数(HOTP

一段哈希值被提取出来并转换为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份验证器ざいGoogle Play商店しょうてんうえ私有しゆうばん权协议发ぬの。GoogleざいGitHubじょう开放りょう其身份验证器げんだい码,并陈じゅつ如下:

“此开げん计划包含ほうがんりょう2.21版本はんぽんてきみなもとだい码。ずいきさきてき版本はんぽんちゅう包含ほうがんりょうGoogle特有とくゆうてき工作こうさくりゅうほどあずか此项无关。”

最後さいご一個開源的版本在2020ねん發布はっぷ[38]

Android版本はんぽんてき独立どくりつぶんささえいちFreeOTP[39],其基于GoogleざいGitHub上所かみところ开源てき最新さいしん版本はんぽん。另外一个較不活躍的分支OTP Authenticator[40]也在Google Playじょうきょう载。

まいり

[编辑]

参考さんこう文献ぶんけん

[编辑]
  1. ^ Google Is Making Your Account Vastly More Secure With Two-Step Authentication - TechCrunch. TechCrunch. 2010-09-20 [2016-03-12]. (原始げんし内容ないようそん于2020-12-02). 
  2. ^ 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. 
  3. ^ Willis, Nathan (22 January 2014)."FreeOTP multi-factor authentication页面そん档备份そん互联网档あん". LWN.net. Retrieved 10 August 2015.
  4. ^ https://play.google.com/store/apps/details?id=com.google.android.apps.authenticator2页面そん档备份そん互联网档あん) A
  5. ^ Google Authenticator. App Store. [2017-10-15]. (原始げんし内容ないようそん于2015-12-22). 
  6. ^ Authenticator. 4 April 2013 [2017-10-15]. (原始げんし内容ないようそん于2019-10-17). 
  7. ^ Virtual TokenFactor. 26 February 2012 [2017-10-15]. (原始げんし内容ないようそん档于2013-09-08). 
  8. ^ [APP]Google Authenticator for Windows Mobile. XDA Developers. [2017-10-15]. (原始げんし内容ないようそん于2019-04-19). 
  9. ^ http://blog dot jamesdotcuff dot net. [2017-10-15]. (原始げんし内容ないようそん档于2014-08-01). 
  10. ^ mclamp/JAuth. GitHub. [2017-10-15]. (原始げんし内容ないようそん于2015-08-04). 
  11. ^ kamenitxan/FXAuth. GitHub. [2017-10-15]. (原始げんし内容ないようそん于2020-09-05). 
  12. ^ gauthj2me - Google Authentification in Java Mobile, j2me - Google Project Hosting. [2017-10-15]. (原始げんし内容ないようそん于2016-01-06). 
  13. ^ lwuitgauthj2me - Google Authenticator for J2ME phones - Google Project Hosting. [2017-10-15]. (原始げんし内容ないようそん于2016-03-16). 
  14. ^ chunlinyao / mobile-otp — Bitbucket. [2017-10-15]. (原始げんし内容ないようそん档于2017-10-15). 
  15. ^ totp-me - TOTP for Java ME - Google authenticator. [2017-10-15]. (原始げんし内容ないようそん于2018-01-05). 
  16. ^ 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). 
  17. ^ tadeck/onetimepass. GitHub. [2017-10-15]. (原始げんし内容ないようそん于2020-10-27). 
  18. ^ pyotp/pyotp. GitHub. [2017-10-15]. (原始げんし内容ないようそん于2018-06-11). 
  19. ^ chregu/GoogleAuthenticator.php. GitHub. [2017-10-15]. (原始げんし内容ないようそん于2020-09-29). 
  20. ^ rotp - RubyGems.org - your community gem host. [2017-10-15]. (原始げんし内容ないようそん于2019-07-11). 
  21. ^ ukazap/twofu. GitHub. [2017-10-15]. (原始げんし内容ないようそん于2020-09-12). 
  22. ^ heapsource/active_model_otp. GitHub. [2017-10-15]. (原始げんし内容ないようそん于2020-12-05). 
  23. ^ GAuth. [2017-10-15]. (原始げんし内容ないようそん于2020-10-20). 
  24. ^ gauth4win - Google Authenticator for windows - Google Project Hosting. [2017-10-15]. (原始げんし内容ないようそん于2016-01-11). 
  25. ^ MOS Authenticator Home. [2017-10-15]. (原始げんし内容ないようそん于2020-02-17). 
  26. ^ 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). 
  27. ^ glacasa/TwoStepsAuthenticator. GitHub. [2017-10-15]. (原始げんし内容ないようそん于2020-12-05). 
  28. ^ gbraad/html5-google-authenticator. GitHub. [2017-10-15]. (原始げんし内容ないようそん于2014-07-05). 
  29. ^ Techtransit. Nokia Store: Download GAuth and many other games, wallpaper, ringtones and mobile apps on your Nokia phone. [2017-10-15]. (原始げんし内容ないようそん于2014-07-12). 
  30. ^ SGAuth. [2017-10-15]. (原始げんし内容ないようそん于2019-07-11). 
  31. ^ SailOTP. [2017-10-15]. (原始げんし内容ないようそん于2021-01-10). 
  32. ^ google-authenticator-apache-module - Apache Module for Two-Factor Authentication via Google Authenticator - Google Project Hosting. [2017-10-15]. (原始げんし内容ないようそん于2015-11-19). 
  33. ^ google-authenticator - Two-step verification - Google Project Hosting. [2017-10-15]. (原始げんし内容ないようそん于2015-02-10). 
  34. ^ oauth-pam - PAM for use with OAuth Websites - Google Project Hosting. [2017-10-15]. (原始げんし内容ないようそん于2016-08-08). 
  35. ^ Authenticator. [2017-10-15]. (原始げんし内容ないようそん于2019-10-17). 
  36. ^ OTP Auth. App Store. [2017-10-15]. (原始げんし内容ないようそん于2019-04-12). 
  37. ^ https://tools.ietf.org/html/c#section-4[永久えいきゅう失效しっこう連結れんけつ]
  38. ^ google/google-authenticator-android: Open source fork of the Google Authenticator Android app. GitHub. 16 May 2022. 
  39. ^ FreeOTP. [2017-10-15]. (原始げんし内容ないようそん于2020-11-12). 
  40. ^ kaie/otp-authenticator-android. GitHub. [2017-10-15]. (原始げんし内容ないようそん于2020-11-22). 

外部がいぶ链接

[编辑]