Title: Google Authenticator
Author: Ivan
Published: <strong>16 maj 2011</strong>
Last modified: 7 april 2026

---

Sök tillägg

![](https://ps.w.org/google-authenticator/assets/banner-772x250.png?rev=3500822)

![](https://ps.w.org/google-authenticator/assets/icon-256x256.png?rev=3500822)

# Google Authenticator

 Av [Ivan](https://profiles.wordpress.org/ivankk/)

[Ladda ner](https://downloads.wordpress.org/plugin/google-authenticator.0.55.zip)

 * [Detaljer](https://sv.wordpress.org/plugins/google-authenticator/#description)
 * [Recensioner](https://sv.wordpress.org/plugins/google-authenticator/#reviews)
 *  [Installation](https://sv.wordpress.org/plugins/google-authenticator/#installation)
 * [Utveckling](https://sv.wordpress.org/plugins/google-authenticator/#developers)

 [Support](https://wordpress.org/support/plugin/google-authenticator/)

## Beskrivning

Tillägget Google Authenticator för WordPress ger dig tvåfaktorsautentisering med
hjälp av Google Authenticator-appen för Android/iPhone/Blackberry.

Om du är säkerhetsmedveten kanske du redan har Google Authenticator-appen installerad
på din smartphone och använder den för tvåfaktorsautentisering på Gmail/Dropbox/
Lastpass/Amazon etc.

The two-factor authentication requirement can be enabled on a per-user basis. You
could enable it for your administrator account, but log in as usual with less privileged
accounts.

If You need to maintain your blog using an Android/iPhone app, or any other software
using the XMLRPC interface, you can enable the App password feature in this plugin,

but please note that enabling the App password feature will make your blog less 
secure.

### Erkännande

Tack till:

[Oleksiy](https://profiles.wordpress.org/evinak/) for a bugfix in multisite.

[Paweł Nowacki](https://github.com/pancek) för den polska översättningen

[Fabio Zumbi](https://github.com/FabioZumbi12) för den portugisiska översättningen

[Guido Schalkx](https://www.guidoschalkx.com/) för den nederländska översättningen.

[Henrik.Schack](https://www.paypal.com/cgi-bin/webscr?cmd=_donations&business=henrik%40schack%2edk&lc=US&item_name=Google%20Authenticator&item_number=Google%20Authenticator&no_shipping=0&no_note=1&tax=0&bn=PP%2dDonationsBF&charset=UTF%2d8)
for writing/maintaining versions 0.20 through 0.48

[Tobias Bäthge](http://tobias.baethge.com/) for his code rewrite and German translation.

[Pascal de Bruijn](http://blog.pcode.nl/) for his ”relaxed mode” idea.

[Daniel Werl](http://technobabbl.es/) for his usability tips.

[Dion Hulse](http://dd32.id.au/) for his bugfixes.

[Aldo Latino](https://profiles.wordpress.org/users/aldolat/) för hans italienska
översättning.

[Kaijia Feng](http://www.kaijia.me/) for his Simplified Chinese translation.

[Alex Concha](http://www.buayacorp.com/) för hans säkerhetstips.

[Jerome Etienne](http://jetienne.com/) for his jquery-qrcode plugin.

[Sébastien Prunier](http://orizhial.com/) för hans spanska och franska översättning.

## Skärmdumpar

 * [[
 * The enhanced log-in box.
 * [[
 * Google Authenticator section on the Profile and Personal options page.
 * [[
 * QR code on the Profile and Personal options page.
 * [[
 * Google Authenticator-app på Android
 * [[

## Installation

 1. Make sure your webhost is capable of providing accurate time information for PHP/
    WordPress, ie. make sure a NTP daemon is running on the server.
 2. Installera och aktivera tillägget.
 3. Enter a description on the Users -> Profile and Personal options page, in the Google
    Authenticator section.
 4. Skanna den genererade QR-koden med din telefon, eller ange hemligheten manuellt,
    kom ihåg att välja den tidsbaserade.
     Du kanske också vill skriva ner hemligheten
    på ett papper och förvara det på ett säkert ställe.
 5. Remember to hit the **Update profile** button at the bottom of the page before 
    leaving the Personal options page.
 6. Det är allt, din WordPress-blogg är nu lite säkrare.

## Vanliga frågor

### Kan jag använda Google Authenticator för WordPress med Android/iPhone-apparna för WordPress?

Yes, you can enable the App password feature to make that possible, but notice that
the XMLRPC interface isn’t protected by two-factor authentication, only a long password.

### Jag vill uppdatera hemligheten, ska jag bara skanna den nya QR-koden efter att ha skapat en ny hemlighet?

No, you’ll have to delete the existing account from the Google Authenticator app
on your smartphone before you scan the new QR code, that is unless you change the
description as well.

### Jag kan inte logga in med detta tillägg, vad är fel?

The Google Authenticator verification codes are time based, so it’s crucial that
the clock in your phone is accurate and in sync with the clock on the server where
your WordPress installation is hosted.
 If you have an Android phone, you can use
an app like [ClockSync](https://market.android.com/details?id=ru.org.amip.ClockSync)
to set your clock in case your Cell provider doesn’t provide accurate time information
Another option is to enable ”relaxed mode” in the settings for the plugin, this 
will enable more valid codes by allowing up to a 4 min. timedrift in each direction.

### I have several users on my WordPress installation, is that a supported configuration ?

Ja, varje användare har sina egna Google Authenticator-inställningar.

### During installation I forgot the thing about making sure my webhost is capable of providing accurate time information, I’m now unable to login, please help.

If you have SSH or FTP access to your webhosting account, you can manually delete
the plugin from your WordPress installation,
 just delete the wp-content/plugins/
google-authenticator directory, and you’ll be able to login using username/password
again.

### Jag äger inte en smartphone, finns det inte ett annat sätt att generera dessa hemliga koder?

Ja, det finns en webbaserad version här: https://gauth.apps.gbraad.nl/
 Github-projekt
här: https://github.com/gbraad/gauth

### Kan jag skapa reservkoder?

No, but if you’re using an Android smartphone you can replace the Google Authenticator
app with [Authenticator Plus](https://play.google.com/store/apps/details?id=com.mufri.authenticatorplus).

It’s a really nice app that can import your existing settings, sync between devices
and backup/restore using your sd-card. It’s not a free app, but it’s well worth 
the money.

### Några kända inkompatibiliteter?

Yes, the Man-in-the-middle attack/replay detection code isn’t compatible with the
test/setup mode in the ”Stop spammer registration plugin”,
 please remember to remove
the ”Check credentials on all login attempts” checkmark before installing my plugin.

## Recensioner

![](https://secure.gravatar.com/avatar/16305c1a12b0a8be84ba710108d31720930ffe2d7dc2b9228de41d736dc33ff1?
s=60&d=retro&r=g)

### 󠀁[So glad to see this updated – been using it for years!](https://wordpress.org/support/topic/so-glad-to-see-this-updated-been-using-it-for-years/)󠁿

 [Paul](https://profiles.wordpress.org/paulschiretz/) 7 april 2026

Hi Ivan, thanks so much for the update! I’ve used this for years and even started
patching it myself to keep it compatible with newer PHP versions. So glad to see
you’re still supporting it. Much appreciated!

![](https://secure.gravatar.com/avatar/da9e9e4567cc472f339d61984aebd4e1fd8cab9088efab7736bdfff3c0c33d29?
s=60&d=retro&r=g)

### 󠀁[Great](https://wordpress.org/support/topic/great-16227/)󠁿

 [Trần Quân](https://profiles.wordpress.org/tquanreal/) 30 mars 2024

Great plugin, but I wish to use a QR code for scanning when I log in.

![](https://secure.gravatar.com/avatar/0dccd30464776c6b0c0226e7f7de922728ff6d4594786f7b40ee6ec2b4426e0d?
s=60&d=retro&r=g)

### 󠀁[Simply a missing feature in .ORG](https://wordpress.org/support/topic/simply-a-missing-feature-in-org/)󠁿

 [Bart Bak](https://profiles.wordpress.org/bartoszbak/) 4 maj 2023

Works! Uses WordPress UI, is super lightweight, not overdesigned, and is trivial
to set up. Great job!

![](https://secure.gravatar.com/avatar/68d12b0bc5a279b854b74161cd3746f387b7549281de909163cf0399cd53e706?
s=60&d=retro&r=g)

### 󠀁[error](https://wordpress.org/support/topic/error-1780/)󠁿

 [ntalam](https://profiles.wordpress.org/ntalam/) 30 april 2023

Fatal error: Uncaught Firebase\JWT\BeforeValidException: Cannot handle token prior
to 2023-04-30T20:30:33+0000 in …\one-tap-google-sign-in\includes\vendor\firebase\
php-jwt\src\JWT.phpI understand it requires synchronization, but you need to handle
this error properly. Cheers

![](https://secure.gravatar.com/avatar/44c193d5e4f00e3837bad335951112b69c802b2356ac62bab64f9ce1ca351f38?
s=60&d=retro&r=g)

### 󠀁[Works as expected](https://wordpress.org/support/topic/works-as-expected-797/)󠁿

 [jjbbrr](https://profiles.wordpress.org/jjbbrr/) 22 december 2022

One of my sites got hacked and some spam blogs posted. Don’t know how they got access
but decided to add 2FA as a preventative. Implemented for all authors. Works out
of the box, simple interface without lots of bells and whistles.

![](https://secure.gravatar.com/avatar/e97ab11e5774988334ba7a6b08be0985c33a77540ae767bb707df977b81888dc?
s=60&d=retro&r=g)

### 󠀁[Plugin stopped working](https://wordpress.org/support/topic/plugin-stopped-working-245/)󠁿

 [sianvdheide](https://profiles.wordpress.org/sianvdheide/) 21 oktober 2022 2 svar

Since a few days the plugin stopped working. It used to work perfect. Users who 
have Google Authenticator activated can’t login anymore. They get the message that
their username/password is invalid while it isn’t. They’re able to login again when
I deactivate Google Authenticator in their profile. Is this a known bug, if so, 
how to fix this? Thanks in advance.

 [ Läs alla 135 betyg ](https://wordpress.org/support/plugin/google-authenticator/reviews/)

## Bidragsgivare och utvecklare

”Google Authenticator” är programvara med öppen källkod. Följande personer har bidragit
till detta tillägg.

Bidragande personer

 *   [ Ivan ](https://profiles.wordpress.org/ivankk/)

”Google Authenticator” har översatts till 16 språk. Tack till [översättarna](https://translate.wordpress.org/projects/wp-plugins/google-authenticator/contributors)
för deras bidrag.

[Översätt ”Google Authenticator” till ditt språk.](https://translate.wordpress.org/projects/wp-plugins/google-authenticator)

### Intresserad av programutveckling?

[Läs programkoden](https://plugins.trac.wordpress.org/browser/google-authenticator/),
kika på [SVN-filförvaret](https://plugins.svn.wordpress.org/google-authenticator/)
eller prenumerera på [utvecklarloggen](https://plugins.trac.wordpress.org/log/google-authenticator/)
via [RSS](https://plugins.trac.wordpress.org/log/google-authenticator/?limit=100&mode=stop_on_copy&format=rss).

## Ändringslogg

#### 0.55

 * Improved PHP compatibility for PHP 7.4 through 8.5.
 * Fixed deprecated and strict runtime issues in plugin code.
 * Improved compatibility and safety of Base32 handling.

#### 0.54

 * Fixed a bug in multisite.

#### 0.53

 * Add a Polish translation

#### 0.52

 * Add a Dutch translation
 * Add a Portuguese translation

#### 0.51

 * Fix a regression that broke app passwords

#### 0.50

 * New maintainer ivankk
 * Conditionally include base32 class

#### 0.49

 * More streamlined sign-up flow for users, configuration screen for admins.
 * Multisite support to either enable 2fa by role on a site, and/or on a network.
 * Added filter google_authenticator_needs_setup to determine if user needs to enable
   2fa.
 * Added two part login process that can ask for 2fa code on a second login screen.
 * Fixed a security bug that continued check_otp even if authenticate had already
   returned an error.

#### 0.48

 * Security fix / compatability with WordPress 4.5

#### 0.47

 * Google chart API replaced with jquery-qrcode
 * QR codes now contain a heading saying WordPress (Feature request by Flemming 
   Mahler)
 * Danish translation & updated .pot file.
 * Plugin now logs login attempts recognized as Man-in-the-middle attacks.

#### 0.46

 * Man-in-the-middle attack protection added.
 * Show warning before displaying the QR code.
 * FAQ updated.

#### 0.45

 * Spaces in the description field should now work on iPhones.
 * Some depricated function calls replaced.
 * Code inputfield easier to use for .jp users now.
 * Sanitize description field input.
 * App password hash function switched to one that doesn’t have rainbow tables available.
 * PHP notices occurring during app password login removed.

#### 0.44

 * Installation/FAQ section updated.
 * Simplified Chinese translation by Kaijia Feng added.
 * Tabindex on loginpage removed, no longer needed, was used by older WordPress 
   installations.
 * Inputfield renamed to ”googleotp”.
 * Defaultdescription changed to ”WordPressBlog” to avoid trouble for iPhone users.
 * Compatibility with Ryan Hellyer’s plugin http://geek.ryanhellyer.net/products/
   deactivate-google-authenticator/
 * Must enter all 6 code digits.

#### 0.43

 * It’s now possible for an admin to hide the Google Authenticaator settings on 
   a per-user basis. (Feature request by : Skate-O)

#### 0.42

 * Autocomplete disabled on code input field. (Feature request by : hiphopsmurf)

#### 0.41

 * Italian translation by Aldo Latino added.

#### 0.40

 * Bugfix, typo corrected and PHP notices removed. Thanks to Dion Hulse for his 
   patch.

#### 0.39

 * Bugfix, Description was not saved to WordPress database when updating profile.
   Thanks to xxdesmus for noticing this.

#### 0.38

 * Usability fix, input field for codes changed from password to text type.

#### 0.37

 * The plugin now supports ”relaxed mode” when authenticating. If selected, codes
   from 4 minutes before and 4 minutes after will work. 30 seconds before and after
   is still the default setting.

#### 0.36

 * Bugfix, now an App password can only be used for XMLRPC/APP-Request logins.

#### 0.35

 * Initial WordPress app support added (XMLRPC).

#### 0.30

 * Code cleanup
 * Changed generation of secret key, to no longer have requirement of SHA256 on 
   the server
 * German translation

#### 0.20

 * Initial release

## Meta

 *  Version **0.55**
 *  Senast uppdaterat **2 veckor sedan**
 *  Aktiva installationer **20 000+**
 *  WordPress-version ** 4.5 eller senare **
 *  Testat upp till **7.0**
 *  Språk
 * [Chinese (China)](https://cn.wordpress.org/plugins/google-authenticator/), [Czech](https://cs.wordpress.org/plugins/google-authenticator/),
   [Danish](https://da.wordpress.org/plugins/google-authenticator/), [Dutch](https://nl.wordpress.org/plugins/google-authenticator/),
   [English (US)](https://wordpress.org/plugins/google-authenticator/), [French (France)](https://fr.wordpress.org/plugins/google-authenticator/),
   [Hebrew](https://he.wordpress.org/plugins/google-authenticator/), [Italian](https://it.wordpress.org/plugins/google-authenticator/),
   [Japanese](https://ja.wordpress.org/plugins/google-authenticator/), [Norwegian (Bokmål)](https://nb.wordpress.org/plugins/google-authenticator/),
   [Persian](https://fa.wordpress.org/plugins/google-authenticator/), [Polish](https://pl.wordpress.org/plugins/google-authenticator/),
   [Romanian](https://ro.wordpress.org/plugins/google-authenticator/), [Slovak](https://sk.wordpress.org/plugins/google-authenticator/),
   [Spanish (Chile)](https://cl.wordpress.org/plugins/google-authenticator/), [Spanish (Spain)](https://es.wordpress.org/plugins/google-authenticator/)
   och [Swedish](https://sv.wordpress.org/plugins/google-authenticator/).
 *  [Översätt till ditt språk](https://translate.wordpress.org/projects/wp-plugins/google-authenticator)
 * Etiketter
 * [authentication](https://sv.wordpress.org/plugins/tags/authentication/)[login](https://sv.wordpress.org/plugins/tags/login/)
   [otp](https://sv.wordpress.org/plugins/tags/otp/)[password](https://sv.wordpress.org/plugins/tags/password/)
   [security](https://sv.wordpress.org/plugins/tags/security/)
 *  [Avancerad vy](https://sv.wordpress.org/plugins/google-authenticator/advanced/)

## Betyg

 4.3 av 5 stjärnor.

 *  [  105 5-stjärniga recensioner     ](https://wordpress.org/support/plugin/google-authenticator/reviews/?filter=5)
 *  [  7 4-stjärniga recensioner     ](https://wordpress.org/support/plugin/google-authenticator/reviews/?filter=4)
 *  [  3 3-stjärniga recensioner     ](https://wordpress.org/support/plugin/google-authenticator/reviews/?filter=3)
 *  [  2 2-stjärniga recensioner     ](https://wordpress.org/support/plugin/google-authenticator/reviews/?filter=2)
 *  [  18 1-stjärniga recensioner     ](https://wordpress.org/support/plugin/google-authenticator/reviews/?filter=1)

[Your review](https://wordpress.org/support/plugin/google-authenticator/reviews/#new-post)

[Se alla recensioner](https://wordpress.org/support/plugin/google-authenticator/reviews/)

## Bidragande personer

 *   [ Ivan ](https://profiles.wordpress.org/ivankk/)

## Support

Antal lösta problem under de senaste två månaderna:

     1 av 1

 [Visa supportforum](https://wordpress.org/support/plugin/google-authenticator/)