Jump to content

Google Authenticator: Difference between revisions

From Wikipedia, the free encyclopedia
Content deleted Content added
→‎infobox: updated logo to svg
→‎Other authentication software: Major reversion, to re-include examples of other authentication software and ports of google 2fa
Line 77: Line 77:
Following Google Authenticator ceasing to be open source, a free-software clone named [[FreeOTP]]<ref>{{cite web|url=https://github.com/freeotp/freeotp-android/|title=FreeOTP|publisher=}}</ref><ref name="lwn-otp"/> was created, predominantly a fresh rewrite but including some code from the original.
Following Google Authenticator ceasing to be open source, a free-software clone named [[FreeOTP]]<ref>{{cite web|url=https://github.com/freeotp/freeotp-android/|title=FreeOTP|publisher=}}</ref><ref name="lwn-otp"/> was created, predominantly a fresh rewrite but including some code from the original.
Google provides [[Android (operating system)|Android]],<ref>https://play.google.com/store/apps/details?id=com.google.android.apps.authenticator2 A</ref> [[BlackBerry]], and [[iOS]]<ref>{{cite web|url=https://itunes.apple.com/app/google-authenticator/id388497605?mt=8|title=Google Authenticator|work=App Store}}</ref> versions of Authenticator.
Google provides [[Android (operating system)|Android]],<ref>https://play.google.com/store/apps/details?id=com.google.android.apps.authenticator2 A</ref> [[BlackBerry]], and [[iOS]]<ref>{{cite web|url=https://itunes.apple.com/app/google-authenticator/id388497605?mt=8|title=Google Authenticator|work=App Store}}</ref> versions of Authenticator.



Several other versions of authentication software are available. Those that use TOTP and HMAC in addition to other two-factor authentication can authenticate with the same sites and processes as Google Authenticator. Some of the listed software is available in versions for [[Cross-platform software|several platforms]].
Several other versions of authentication software are available. Those that use TOTP and HMAC in addition to other two-factor authentication can authenticate with the same sites and processes as Google Authenticator. Some of the listed software is available in versions for [[Cross-platform software|several platforms]].
<!--This list should be tidied to include only TOTP/HMAC software, and the section retitled "Other TOTP/HMAC authentication software"-->
{{div col}}
*Windows Phone 7.5/8/8.1/10: Microsoft Authenticator,<ref>{{cite web|url=http://www.windowsphone.com/s?appid=e7994dbc-2336-4950-91ba-ca22d653759b|title=Authenticator|date=4 April 2013}}</ref> Virtual TokenFactor<ref>{{cite web|url=http://www.windowsphone.com/s?appid=8a30b055-500a-4d37-af06-a5121b386ac4|title=Virtual TokenFactor|date=26 February 2012}}</ref>
*Windows Mobile: Google Authenticator for Windows Mobile<ref>{{cite web|url=http://forum.xda-developers.com/showthread.php?t=956184|title=[APP]Google Authenticator for Windows Mobile|work=XDA Developers}}</ref>
*Java CLI: Authenticator.jar<ref>{{cite web|url=http://blog.jcuff.net/2011/02/cli-java-based-google-authenticator.html|title=http://blog dot jamesdotcuff dot net|publisher=}}</ref>
*Java GUI: JAuth,<ref>{{cite web|url=https://github.com/mclamp/jauth#readme|title=mclamp/JAuth|work=GitHub}}</ref> FXAuth<ref>{{cite web|url=https://github.com/kamenitxan/FXAuth|title=kamenitxan/FXAuth|work=GitHub}}</ref>
*J2ME: gauthj2me,<ref>{{cite web|url=https://code.google.com/p/gauthj2me/|title=gauthj2me - Google Authentification in Java Mobile, j2me - Google Project Hosting|publisher=}}</ref> lwuitgauthj2me,<ref>{{cite web|url=https://code.google.com/p/lwuitgauthj2me/|title=lwuitgauthj2me - Google Authenticator for J2ME phones - Google Project Hosting|publisher=}}</ref> Mobile-OTP (Chinese only),<ref>{{cite web|url=https://bitbucket.org/chunlinyao/mobile-otp/overview|title=chunlinyao / mobile-otp — Bitbucket|publisher=}}</ref> totp-me<ref>{{cite web|url=http://totpme.sourceforge.net/|title=totp-me - TOTP for Java ME - Google authenticator|publisher=}}</ref>
*Palm OS: gauthj2me<ref>{{cite web|url=https://code.google.com/p/gauthj2me/downloads/detail?name=gauth.prc&can=2&q=|title=gauth.prc - gauthj2me - Google Authenticator for Palm OS (converted from java) - Google Authentification in Java Mobile, j2me - Google Project Hosting|publisher=}}</ref>
*Python: onetimepass<ref>{{cite web|url=https://github.com/tadeck/onetimepass|title=tadeck/onetimepass|work=GitHub}}</ref> pyotp<ref>{{cite web|url=https://github.com/pyotp/pyotp|title=pyotp/pyotp|work=GitHub}}</ref>
*PHP: GoogleAuthenticator.php<ref>{{cite web|url=https://github.com/chregu/GoogleAuthenticator.php|title=chregu/GoogleAuthenticator.php|work=GitHub}}</ref>
*Ruby: rotp,<ref>{{cite web|url=http://rubygems.org/gems/rotp|title=rotp - RubyGems.org - your community gem host|publisher=}}</ref> twofu<ref>{{cite web|url=https://github.com/ukazap/twofu|title=ukazap/twofu|work=GitHub}}</ref>
*Rails: active_model_otp<ref>{{cite web|url=https://github.com/heapsource/active_model_otp|title=heapsource/active_model_otp|work=GitHub}}</ref>
*webOS: GAuth<ref>{{cite web|url=http://gregstoll.dyndns.org/gauth/|title=GAuth|publisher=}}</ref>
*Windows: gauth4win,<ref>{{cite web|url=https://code.google.com/p/gauth4win/|title=gauth4win - Google Authenticator for windows - Google Project Hosting|publisher=}}</ref> MOS Authenticator,<ref>{{cite web|url=http://www.maxoutput.com/authenticator/|title=MOS Authenticator Home|publisher=}}</ref> WinAuth<ref>{{cite web|url=https://code.google.com/p/winauth/|title=winauth - Windows Authenticator for Battle.net / World of Warcraft / Guild Wars 2 / Glyph / WildStar / Google / Bitcoin - Google Project Hosting|publisher=}}</ref>
*.NET: TwoStepsAuthenticator<ref>{{cite web|url=https://github.com/glacasa/TwoStepsAuthenticator|title=glacasa/TwoStepsAuthenticator|work=GitHub}}</ref>
*Multi-platform: [https://saaspass.com SAASPASS Authenticator]
*HTML5: html5-google-authenticator<ref>{{cite web|url=https://github.com/gbraad/html5-google-authenticator|title=gbraad/html5-google-authenticator|work=GitHub}}</ref>
*MeeGo/Harmattan (Nokia N9): GAuth<ref>{{cite web|url=http://store.ovi.com/content/273598|title=Nokia Store: Download GAuth and many other games, wallpaper, ringtones and mobile apps on your Nokia phone|author=Techtransit|publisher=}}</ref>
*Sailfish OS: SGAuth,<ref>{{cite web|url=https://openrepos.net/content/stozze/sgauth|title=SGAuth|publisher=}}</ref> SailOTP<ref>{{cite web|url=https://openrepos.net/content/seiichiro0185/sailotp|title=SailOTP}}</ref>
*Apache: Google Authenticator Apache Module<ref>{{cite web|url=https://code.google.com/p/google-authenticator-apache-module/|title=google-authenticator-apache-module - Apache Module for Two-Factor Authentication via Google Authenticator - Google Project Hosting|publisher=}}</ref>
*PAM: Google Pluggable Authentication Module,<ref name="code.google.com">{{cite web|url=https://code.google.com/p/google-authenticator/|title=google-authenticator - Two-step verification - Google Project Hosting|publisher=}}</ref> oauth-pam<ref>{{cite web|url=https://code.google.com/p/oauth-pam/|title=oauth-pam - PAM for use with OAuth Websites - Google Project Hosting|publisher=}}</ref>
*Backend: [[LinOTP]] (Management Backend implemented in python)
*Browser extension: Authenticator<ref>{{cite web|url=https://github.com/Authenticator-Extension/Authenticator#readme|title=Authenticator-Extension/Authenticator|publisher=GitHub}}</ref>
*Multi-platform: [https://www.pcmag.com/article2/0,2817,2479905,00.asp Twilio Authy]<ref>{{cite web|url=https://itunes.apple.com/us/app/authy/id494168017?mt=8|title=Authy|work=App Store}}</ref>
*Multi-platform: [https://www.pcmag.com/article2/0,2817,2485337,00.asp Duo Mobile]<ref>{{cite web|url=https://itunes.apple.com/us/app/duo-mobile/id422663827?mt=8|title=Duo Mobile|work=App Store}}</ref>
* OTP Auth<ref>{{cite web|url=https://itunes.apple.com/us/app/otp-auth/id659877384?mt=8|title=OTP Auth|work=App Store}}</ref>

*[[privacyIDEA]] Authentication System.
*Multi-platform: [https://www.pcmag.com/news/342962/lastpast-launches-2-factor-authentication-app LastPass Authenticator]
*Android: [https://github.com/andOTP/andOTP andOTP]
{{div col end}}

==See also==

*[[Multi-factor authentication]]
*[[HMAC-based One-time Password algorithm]]

==References==
{{reflist|colwidth=30em}}

==External links==
*[https://support.google.com/a/answer/175197 Google Authenticator] on Google Help
*[https://github.com/google/google-authenticator-android Google Authenticator (Android)] and [https://github.com/google/google-authenticator Google Authenticator (other)] legacy source code on [[GitHub]]
*[https://github.com/google/google-authenticator-libpam Google Authenticator PAM module] source code on [[GitHub]]
*[https://stackoverflow.com/questions/8529265/google-authenticator-implementation-in-python Google Authenticator implementation in Python] on [[Stack Overflow]]
*[https://f-droid.org/en/packages/net.bierbaumer.otp_authenticator Authenticator on F-Droid]
*[https://github.com/MicroPyramid/django-mfa/ Django-MFA Implementation Using Google Authenticator] - Django-mfa is a simple package to add extra layer of security to your django web application. It gives web app a randomly changing password as an extra protection.

{{Google Inc.}}

[[Category:Articles with example pseudocode]]
[[Category:Computer access control]]
[[Category:Google services|Authenticator]]
[[Category:Computer-related introductions in 2010]]


==See also==
==See also==

Revision as of 19:52, 11 July 2019

Google Authenticator
Developer(s)Google
Initial releaseSeptember 20, 2010; 13 years ago (2010-09-20)[1]
Repositorygithub.com/google/google-authenticator
Operating systemAndroid, iOS, BlackBerry OS
PlatformMobile
LicenseProprietary freeware (earlier versions were under Apache License 2.0)
Websiteplay.google.com/store/google.authenticator

Google Authenticator is a software-based authenticator that implements two-step verification services using the Time-based One-time Password Algorithm (TOTP; specified in RFC 6238) and HMAC-based One-time Password algorithm (HOTP; specified in RFC 4226), for authenticating users of mobile applications by Google.[2]

When logging into a site supporting Authenticator (including Google services) or using Authenticator-supporting third-party applications such as password managers or file hosting services, Authenticator generates a six- to eight-digit one-time password which users must enter in addition to their usual login details.

Previous versions of the software were open-source but subsequent releases are proprietary.[3]

Typical use case

To use Authenticator, the app is first installed on a smartphone. It must be set up for each site with which it is to be used: the site provides a shared secret key to the user over a secure channel, to be stored in the Authenticator app. This secret key will be used for all future logins to the site.[citation needed]

To log into a site or service that uses two-factor authentication and supports Authenticator, the user provides username and password to the site, which computes (but does not display) the required six-digit one-time password and asks the user to enter it. The user runs the Authenticator app, which independently computes and displays the same password, which the user types in, authenticating their identity.[citation needed]


With this kind of two-factor authentication, mere knowledge of username and password is not sufficient to break into a user's account; the attacker also needs knowledge of the shared secret key, or physical access to the device running the Authenticator app. An alternative route of attack is a man-in-the-middle attack: if the computer used for the login process is compromised by a trojan, then username, password and one-time password can be captured by the trojan, which can then initiate its own login session to the site or monitor and modify the communication between user and site.[citation needed]

Technical description

The service provider generates an 80-bit secret key for each user (whereas RFC 4226 §4 requires 128 bits and recommends 160 bits).[4] This is provided as a 16, 26 or 32 character base32 string or as a QR code. The client creates an HMAC-SHA1 using this secret key. The message that is HMAC-ed can be:

  • the number of 30-second periods having elapsed since the Unix epoch (TOTP); or
  • the counter that is incremented with each new code (HOTP).

A portion of the HMAC is extracted and converted to a six-digit code.

Pseudocode for one-time password (OTP)

  function GoogleAuthenticatorCode(string secret)
      key := 5B5E7MMX344QRHYO
      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 from the left until length of code is 6
      return code

Other authentication software

The Google Authenticator app for Android was originally open source, but later became proprietary.[3] Google made earlier source for their Authenticator app available on its GitHub repository; the associated development page states:

"This open source project allows you to download the code that powered version 2.21 of the application. Subsequent versions contain Google-specific workflows that are not part of the project."[5]

Following Google Authenticator ceasing to be open source, a free-software clone named FreeOTP[6][3] was created, predominantly a fresh rewrite but including some code from the original. Google provides Android,[7] BlackBerry, and iOS[8] versions of Authenticator.


Several other versions of authentication software are available. Those that use TOTP and HMAC in addition to other two-factor authentication can authenticate with the same sites and processes as Google Authenticator. Some of the listed software is available in versions for several platforms.

  • Windows Phone 7.5/8/8.1/10: Microsoft Authenticator,[9] Virtual TokenFactor[10]
  • Windows Mobile: Google Authenticator for Windows Mobile[11]
  • Java CLI: Authenticator.jar[12]
  • Java GUI: JAuth,[13] FXAuth[14]
  • J2ME: gauthj2me,[15] lwuitgauthj2me,[16] Mobile-OTP (Chinese only),[17] totp-me[18]
  • Palm OS: gauthj2me[19]
  • Python: onetimepass[20] pyotp[21]
  • PHP: GoogleAuthenticator.php[22]
  • Ruby: rotp,[23] twofu[24]
  • Rails: active_model_otp[25]
  • webOS: GAuth[26]
  • Windows: gauth4win,[27] MOS Authenticator,[28] WinAuth[29]
  • .NET: TwoStepsAuthenticator[30]
  • Multi-platform: SAASPASS Authenticator
  • HTML5: html5-google-authenticator[31]
  • MeeGo/Harmattan (Nokia N9): GAuth[32]
  • Sailfish OS: SGAuth,[33] SailOTP[34]
  • Apache: Google Authenticator Apache Module[35]
  • PAM: Google Pluggable Authentication Module,[5] oauth-pam[36]
  • Backend: LinOTP (Management Backend implemented in python)
  • Browser extension: Authenticator[37]
  • Multi-platform: Twilio Authy[38]
  • Multi-platform: Duo Mobile[39]
  • OTP Auth[40]

See also

References

  1. ^ "Google Is Making Your Account Vastly More Secure With Two-Step Authentication - TechCrunch". TechCrunch. 2010-09-20. Retrieved 2016-03-12.
  2. ^ "GitHub - google/google-authenticator: Open source version of Google Authenticator (except the Android app)". GitHub. Google. 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. ^ a b c Willis, Nathan (22 January 2014)."FreeOTP multi-factor authentication". LWN.net. Retrieved 10 August 2015.
  4. ^ "RFC 4226 - HOTP: An HMAC-Based One-Time Password Algorithm". Tools.ietf.org. 2005-02-15. Retrieved 2019-03-25.
  5. ^ a b "google-authenticator - Two-step verification - Google Project Hosting".
  6. ^ "FreeOTP".
  7. ^ https://play.google.com/store/apps/details?id=com.google.android.apps.authenticator2 A
  8. ^ "Google Authenticator". App Store.
  9. ^ "Authenticator". 4 April 2013.
  10. ^ "Virtual TokenFactor". 26 February 2012.
  11. ^ "[APP]Google Authenticator for Windows Mobile". XDA Developers.
  12. ^ "http://blog dot jamesdotcuff dot net".
  13. ^ "mclamp/JAuth". GitHub.
  14. ^ "kamenitxan/FXAuth". GitHub.
  15. ^ "gauthj2me - Google Authentification in Java Mobile, j2me - Google Project Hosting".
  16. ^ "lwuitgauthj2me - Google Authenticator for J2ME phones - Google Project Hosting".
  17. ^ "chunlinyao / mobile-otp — Bitbucket".
  18. ^ "totp-me - TOTP for Java ME - Google authenticator".
  19. ^ "gauth.prc - gauthj2me - Google Authenticator for Palm OS (converted from java) - Google Authentification in Java Mobile, j2me - Google Project Hosting".
  20. ^ "tadeck/onetimepass". GitHub.
  21. ^ "pyotp/pyotp". GitHub.
  22. ^ "chregu/GoogleAuthenticator.php". GitHub.
  23. ^ "rotp - RubyGems.org - your community gem host".
  24. ^ "ukazap/twofu". GitHub.
  25. ^ "heapsource/active_model_otp". GitHub.
  26. ^ "GAuth".
  27. ^ "gauth4win - Google Authenticator for windows - Google Project Hosting".
  28. ^ "MOS Authenticator Home".
  29. ^ "winauth - Windows Authenticator for Battle.net / World of Warcraft / Guild Wars 2 / Glyph / WildStar / Google / Bitcoin - Google Project Hosting".
  30. ^ "glacasa/TwoStepsAuthenticator". GitHub.
  31. ^ "gbraad/html5-google-authenticator". GitHub.
  32. ^ Techtransit. "Nokia Store: Download GAuth and many other games, wallpaper, ringtones and mobile apps on your Nokia phone".
  33. ^ "SGAuth".
  34. ^ "SailOTP".
  35. ^ "google-authenticator-apache-module - Apache Module for Two-Factor Authentication via Google Authenticator - Google Project Hosting".
  36. ^ "oauth-pam - PAM for use with OAuth Websites - Google Project Hosting".
  37. ^ "Authenticator-Extension/Authenticator". GitHub.
  38. ^ "Authy". App Store.
  39. ^ "Duo Mobile". App Store.
  40. ^ "OTP Auth". App Store.

See also

References