Title: Plugin didn&#8217;t show secure code
Last modified: February 15, 2017

---

# Plugin didn’t show secure code

 *  Resolved [Dmitrij Bezrucko](https://wordpress.org/support/users/besdima/)
 * (@besdima)
 * [9 years, 3 months ago](https://wordpress.org/support/topic/plugin-didnt-show-secure-code/)
 * Hi there!
    Try to install this plugin is my WP site and have a problem, plugin
   didn’t show me code And i can’t scan QR via google app on mobile, have an error
   Disable\enable plugin didn’t help
    -  This topic was modified 9 years, 3 months ago by [Dmitrij Bezrucko](https://wordpress.org/support/users/besdima/).

Viewing 15 replies - 1 through 15 (of 28 total)

1 [2](https://wordpress.org/support/topic/plugin-didnt-show-secure-code/page/2/?output_format=md)
[→](https://wordpress.org/support/topic/plugin-didnt-show-secure-code/page/2/?output_format=md)

 *  Plugin Author [David Anderson / Team Updraft](https://wordpress.org/support/users/davidanderson/)
 * (@davidanderson)
 * [9 years, 3 months ago](https://wordpress.org/support/topic/plugin-didnt-show-secure-code/#post-8807113)
 * Hi,
 * Please can you give some more info on the particular steps you’ve taken? Presumably,
   if you didn’t succeed in scanning the QR code (what happened when you tried? 
   N.B. You can also type in the key if the scan does not work on your phone), then
   you didn’t activate TFA on your account, and hence that’s why the field doesn’t
   show? (Does the first sentence refer to the TFA field on the login form showing?
   I’m not sure what you mean by the code not showing – can you explain?).
 * David
 *  Plugin Author [David Anderson / Team Updraft](https://wordpress.org/support/users/davidanderson/)
 * (@davidanderson)
 * [9 years, 3 months ago](https://wordpress.org/support/topic/plugin-didnt-show-secure-code/#post-8807119)
 * > have an error
 * What is the error?
 *  Thread Starter [Dmitrij Bezrucko](https://wordpress.org/support/users/besdima/)
 * (@besdima)
 * [9 years, 3 months ago](https://wordpress.org/support/topic/plugin-didnt-show-secure-code/#post-8807212)
 * Thank you for your quick reply!
    When i try to scan QR code google app says that
   it can’t find a key in this code I scaned this code by qr droid, and it shows
   me this – otpauth://totp/besdima.ru:Besdima?secret=&issuer=besdima.ru&counter
   =
 * > I’m not sure what you mean by the code not showing
    I mean that is no key in
   it, so i can’t istall FTA manual in phone
 * ps sorry about bad english
 *  Thread Starter [Dmitrij Bezrucko](https://wordpress.org/support/users/besdima/)
 * (@besdima)
 * [9 years, 3 months ago](https://wordpress.org/support/topic/plugin-didnt-show-secure-code/#post-8807244)
 * for info my system:
    Wind 2016 IIS 10 PHP Version 5.6.30
 *  Plugin Author [David Anderson / Team Updraft](https://wordpress.org/support/users/davidanderson/)
 * (@davidanderson)
 * [9 years, 3 months ago](https://wordpress.org/support/topic/plugin-didnt-show-secure-code/#post-8807415)
 * Hi,
 * In the WP dashboard, what does it show underneath the QR code? Does it show a
   key there?
 * David
 *  Thread Starter [Dmitrij Bezrucko](https://wordpress.org/support/users/besdima/)
 * (@besdima)
 * [9 years, 3 months ago](https://wordpress.org/support/topic/plugin-didnt-show-secure-code/#post-8811241)
 * No, there is no key there
 *  Plugin Author [David Anderson / Team Updraft](https://wordpress.org/support/users/davidanderson/)
 * (@davidanderson)
 * [9 years, 3 months ago](https://wordpress.org/support/topic/plugin-didnt-show-secure-code/#post-8811308)
 * What is there – can you link a screenshot? (e.g. [https://snag.gy](https://snag.gy)).
 * Is there a “reset private key” link? Does it give you a key if you press it?
 *  Thread Starter [Dmitrij Bezrucko](https://wordpress.org/support/users/besdima/)
 * (@besdima)
 * [9 years, 3 months ago](https://wordpress.org/support/topic/plugin-didnt-show-secure-code/#post-8811538)
 * [https://snag.gy/NYeA4y.jpg](https://snag.gy/NYeA4y.jpg)
    Yep, press reset key
   no effects
 *  Plugin Author [David Anderson / Team Updraft](https://wordpress.org/support/users/davidanderson/)
 * (@davidanderson)
 * [9 years, 3 months ago](https://wordpress.org/support/topic/plugin-didnt-show-secure-code/#post-8811618)
 * Strange – I have not seen that before!
 * So, it seems that something in the key generation code fails. Is anything logged
   in your PHP error log?
 *  Thread Starter [Dmitrij Bezrucko](https://wordpress.org/support/users/besdima/)
 * (@besdima)
 * [9 years, 3 months ago](https://wordpress.org/support/topic/plugin-didnt-show-secure-code/#post-8811662)
 * Yes, i find this in PHP log:
    [16-Feb-2017 09:43:53 UTC] PHP Warning: mcrypt_decrypt():
   Received initialization vector of size 20, but size 16 is required for this encryption
   mode in C:\inetpub\Besdima.ru\wp-content\plugins\two-factor-authentication\includes\
   class.TFA.php on line 511 [16-Feb-2017 09:43:53 UTC] PHP Warning: mcrypt_decrypt():
   Received initialization vector of size 20, but size 16 is required for this encryption
   mode in C:\inetpub\Besdima.ru\wp-content\plugins\two-factor-authentication\includes\
   class.TFA.php on line 511 [16-Feb-2017 09:43:53 UTC] PHP Warning: mcrypt_decrypt():
   Received initialization vector of size 20, but size 16 is required for this encryption
   mode in C:\inetpub\Besdima.ru\wp-content\plugins\two-factor-authentication\includes\
   class.TFA.php on line 511 [16-Feb-2017 09:44:25 UTC] PHP Warning: mcrypt_decrypt():
   Received initialization vector of size 22, but size 16 is required for this encryption
   mode in C:\inetpub\Besdima.ru\wp-content\plugins\two-factor-authentication\includes\
   class.TFA.php on line 511 [16-Feb-2017 09:44:25 UTC] PHP Warning: mcrypt_decrypt():
   Received initialization vector of size 22, but size 16 is required for this encryption
   mode in C:\inetpub\Besdima.ru\wp-content\plugins\two-factor-authentication\includes\
   class.TFA.php on line 511 [16-Feb-2017 09:44:25 UTC] PHP Warning: mcrypt_decrypt():
   Received initialization vector of size 22, but size 16 is required for this encryption
   mode in C:\inetpub\Besdima.ru\wp-content\plugins\two-factor-authentication\includes\
   class.TFA.php on line 511
 *  Thread Starter [Dmitrij Bezrucko](https://wordpress.org/support/users/besdima/)
 * (@besdima)
 * [9 years, 3 months ago](https://wordpress.org/support/topic/plugin-didnt-show-secure-code/#post-8811666)
 * Yes, i find this in PHP log:
    PHP Warning: mcrypt_decrypt(): Received initialization
   vector of size 20, but size 16 is required for this encryption mode in Besdima.
   ru\wp-content\plugins\two-factor-authentication\includes\class.TFA.php on line
   511
 *  Plugin Author [David Anderson / Team Updraft](https://wordpress.org/support/users/davidanderson/)
 * (@davidanderson)
 * [9 years, 3 months ago](https://wordpress.org/support/topic/plugin-didnt-show-secure-code/#post-8814588)
 * Very strange; the code asks mcrypt for what size it wants, and then gives it 
   that many bytes. So it is odd that on this particular server, it then complains
   it was the wrong size.
    What PHP version is the site running on?
 *  Thread Starter [Dmitrij Bezrucko](https://wordpress.org/support/users/besdima/)
 * (@besdima)
 * [9 years, 3 months ago](https://wordpress.org/support/topic/plugin-didnt-show-secure-code/#post-8815415)
 * I have non threat PHP 5.6.30
 *  Plugin Author [David Anderson / Team Updraft](https://wordpress.org/support/users/davidanderson/)
 * (@davidanderson)
 * [9 years, 3 months ago](https://wordpress.org/support/topic/plugin-didnt-show-secure-code/#post-8815610)
 * Hi,
 * Hmmm, this is really odd. That’s a very common version, of course.
 * I think the only way it could be investigated is if I could have a WP login on
   your site. If you are willing for that, please confirm, and I will give you an
   email address to send details to.
 * Does the problem exist even with no other plugins activated? If it does, you 
   could set up a test site on the same server with no other plugins, if you prefer.
 * David
 *  Thread Starter [Dmitrij Bezrucko](https://wordpress.org/support/users/besdima/)
 * (@besdima)
 * [9 years, 3 months ago](https://wordpress.org/support/topic/plugin-didnt-show-secure-code/#post-8816638)
 * Mm, i will try to install clean test WP site without any plugins, if on test 
   site i have the same error i can give you a admin right’s
    My email [admin@besdima.ru](https://wordpress.org/support/topic/plugin-didnt-show-secure-code/admin@besdima.ru?output_format=md)

Viewing 15 replies - 1 through 15 (of 28 total)

1 [2](https://wordpress.org/support/topic/plugin-didnt-show-secure-code/page/2/?output_format=md)
[→](https://wordpress.org/support/topic/plugin-didnt-show-secure-code/page/2/?output_format=md)

The topic ‘Plugin didn’t show secure code’ is closed to new replies.

 * ![](https://ps.w.org/two-factor-authentication/assets/icon-256x256.png?rev=1116775)
 * [Two Factor Authentication](https://wordpress.org/plugins/two-factor-authentication/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/two-factor-authentication/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/two-factor-authentication/)
 * [Active Topics](https://wordpress.org/support/plugin/two-factor-authentication/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/two-factor-authentication/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/two-factor-authentication/reviews/)

 * 28 replies
 * 2 participants
 * Last reply from: [David Anderson / Team Updraft](https://wordpress.org/support/users/davidanderson/)
 * Last activity: [9 years, 3 months ago](https://wordpress.org/support/topic/plugin-didnt-show-secure-code/page/2/#post-8825166)
 * Status: resolved