{"id":417139,"date":"2026-12-02T17:26:51","date_gmt":"2026-12-02T17:26:51","guid":{"rendered":"https:\/\/wordpress.org\/plugins\/khalaf-mobile-authenticator-2fa\/"},"modified":"2026-12-02T17:26:25","modified_gmt":"2026-12-02T17:26:25","slug":"khalaf-mobile-authenticator-2fa","status":"publish","type":"plugin","link":"https:\/\/wordpress.org\/plugins\/khalaf-mobile-authenticator-2fa\/","author":20519826,"comment_status":"closed","ping_status":"closed","template":"","meta":{"version":"1.0.0","stable_tag":"1.0.0","tested":"7.1.5","requires":"5.8","requires_php":"7.4","requires_plugins":null,"header_name":"KHALAF Mobile Authenticator & 2FA","header_author":"khalaf22","header_description":"Secure Two-Factor Authentication (2FA) via Mobile Authenticator apps (Google Authenticator, Microsoft Authenticator, 2FAS) and Email OTP verification code fallback.","last_updated":"2026-12-02 17:26:25","external_support_url":"","external_repository_url":"","donate_link":"","header_plugin_uri":"","header_author_uri":"https:\/\/profiles.wordpress.org\/khalaf22\/","rating":0,"author_block_rating":0,"active_installs":0,"downloads":142,"num_ratings":0,"support_threads":0,"support_threads_resolved":0,"author_block_count":0,"sections":["description","installation","faq","changelog"],"tags":{"1.0.0":{"tag":"1.0.0","author":"khalaf22","date":"2026-12-02 17:26:25","revision":3840743}},"upgrade_notice":[],"ratings":[],"assets_icons":{"icon-128x128.png":{"filename":"icon-128x128.png","revision":3840743,"resolution":"128x128","location":"assets","locale":"","width":128,"height":128},"icon-256x256.png":{"filename":"icon-256x256.png","revision":3840743,"resolution":"256x256","location":"assets","locale":"","width":256,"height":256}},"assets_banners":{"banner-1544x500.png":{"filename":"banner-1544x500.png","revision":3840743,"resolution":"1544x500","location":"assets","locale":"","width":1544,"height":500},"banner-772x250.png":{"filename":"banner-772x250.png","revision":3840743,"resolution":"772x250","location":"assets","locale":"","width":772,"height":250}},"assets_blueprints":{},"all_blocks":[],"tagged_versions":["1.0.0"],"block_files":[],"assets_screenshots":{"screenshot-1.png":{"filename":"screenshot-1.png","revision":3840956,"resolution":"1","location":"assets","locale":"","width":1024,"height":488},"screenshot-2.png":{"filename":"screenshot-2.png","revision":3840743,"resolution":"2","location":"assets","locale":"","width":1024,"height":768},"screenshot-3.png":{"filename":"screenshot-3.png","revision":3840743,"resolution":"3","location":"assets","locale":"","width":1024,"height":768},"screenshot-4.png":{"filename":"screenshot-4.png","revision":3840956,"resolution":"4","location":"assets","locale":"","width":1024,"height":494}},"screenshots":{"1":"Setup screen with local QR code generation, manual entry key, and authenticator app links.","2":"Login screen with 2FA verification step and Email OTP fallback button.","3":"Brute-force protection lockout card with interactive countdown timer.","4":"Comprehensive settings hub: policy enforcement, role selection, rate limiting, and backup codes management."}},"plugin_section":[],"plugin_tags":[9211,9212,600,9225,1909],"plugin_category":[54],"plugin_contributors":[282401],"plugin_business_model":[],"class_list":["post-417139","plugin","type-plugin","status-publish","hentry","plugin_tags-2fa","plugin_tags-authenticator","plugin_tags-security","plugin_tags-totp","plugin_tags-two-factor-authentication","plugin_category-security-and-spam-protection","plugin_contributors-khalaf22","plugin_committers-khalaf22"],"banners":{"banner":"https:\/\/ps.w.org\/khalaf-mobile-authenticator-2fa\/assets\/banner-772x250.png?rev=3840743","banner_2x":"https:\/\/ps.w.org\/khalaf-mobile-authenticator-2fa\/assets\/banner-1544x500.png?rev=3840743","banner_rtl":false,"banner_2x_rtl":false},"icons":{"svg":false,"icon":"https:\/\/ps.w.org\/khalaf-mobile-authenticator-2fa\/assets\/icon-128x128.png?rev=3840743","icon_2x":"https:\/\/ps.w.org\/khalaf-mobile-authenticator-2fa\/assets\/icon-256x256.png?rev=3840743","generated":false},"screenshots":[{"src":"https:\/\/ps.w.org\/khalaf-mobile-authenticator-2fa\/assets\/screenshot-1.png?rev=3840956","caption":"Setup screen with local QR code generation, manual entry key, and authenticator app links."},{"src":"https:\/\/ps.w.org\/khalaf-mobile-authenticator-2fa\/assets\/screenshot-2.png?rev=3840743","caption":"Login screen with 2FA verification step and Email OTP fallback button."},{"src":"https:\/\/ps.w.org\/khalaf-mobile-authenticator-2fa\/assets\/screenshot-3.png?rev=3840743","caption":"Brute-force protection lockout card with interactive countdown timer."},{"src":"https:\/\/ps.w.org\/khalaf-mobile-authenticator-2fa\/assets\/screenshot-4.png?rev=3840956","caption":"Comprehensive settings hub: policy enforcement, role selection, rate limiting, and backup codes management."}],"raw_content":"<!--section=description-->\n<p><strong>KHALAF Mobile Authenticator &amp; 2FA<\/strong> adds Two-Factor Authentication (2FA) to your WordPress website without subscriptions or third-party cloud dependencies.<\/p>\n\n<p>Protect your admin dashboard and user accounts against brute-force attacks, credential stuffing, and password leaks using standard Time-Based One-Time Passwords (TOTP) and Email OTP fallback.<\/p>\n\n<h3>Key Features<\/h3>\n\n<ul>\n<li><strong>Universal Mobile Authenticator Compatibility<\/strong>: Works with Google Authenticator, Microsoft Authenticator, 2FAS, Authy, and any standard RFC 6238 TOTP authenticator app on iOS and Android.<\/li>\n<li><strong>Email OTP Verification Fallback<\/strong>: Request a temporary, one-time 6-digit login verification code sent to your registered account email address.<\/li>\n<li><strong>Privacy &amp; Local QR Generation<\/strong>: QR codes are generated directly in your browser using local client-side scripts. Your 2FA secrets are never sent to external APIs or remote servers.<\/li>\n<li><strong>Brute-Force &amp; Rate Limiting Defense<\/strong>: Automatic lockout after consecutive failed verification attempts with a live countdown timer.<\/li>\n<li><strong>Hashed Emergency Backup Codes<\/strong>: Generates 8 single-use recovery codes stored as WordPress password hashes. Download as <code>.txt<\/code> or send them to your email during setup.<\/li>\n<li><strong>Role-Based 2FA Enforcement<\/strong>: Require 2FA for all Administrators or specific user roles (Editor, Author, Shop Manager, etc.).<\/li>\n<li><strong>Admin Setup Enforcement<\/strong>: Enforced users are restricted to the 2FA setup screen until they configure their 2FA credentials.<\/li>\n<li><strong>Application Passwords Shield<\/strong>: Automatically disables core application passwords for 2FA-protected accounts when enabled in settings.<\/li>\n<li><strong>Lightweight Architecture<\/strong>: No custom database tables created. Uses standard WordPress options, transients, and user meta.<\/li>\n<\/ul>\n\n<h3>How the Email OTP Fallback Works<\/h3>\n\n<p>When logging in, users can click \"Send Code to Email\". The plugin generates a cryptographically random 6-digit code, stores it as an expiring hash transient (5-minute validity), and emails it to the user. A 60-second cooldown prevents repeated email requests. The same login input accepts the code.<\/p>\n\n<h3>Third-Party Libraries<\/h3>\n\n<ul>\n<li><strong>QRCode.js<\/strong> (<code>assets\/js\/qrcode.min.js<\/code>, full unminified source included at <code>assets\/js\/qrcode.js<\/code>) \u2014 Client-side QR code generator, licensed under the MIT License (https:\/\/github.com\/davidshimjs\/qrcodejs).<\/li>\n<\/ul>\n\n<!--section=installation-->\n<ol>\n<li>Upload the plugin files to the <code>\/wp-content\/plugins\/khalaf-mobile-authenticator-2fa<\/code> directory, or install directly through the WordPress plugins screen.<\/li>\n<li>Activate the plugin through the <strong>Plugins<\/strong> screen in WordPress.<\/li>\n<li>Navigate to <strong>KHALAF 2FA \u2192 My 2FA Security<\/strong> (or your User Profile) to scan your QR code with your mobile authenticator app.<\/li>\n<li>Enter the 6-digit code from your mobile app and click <strong>Verify &amp; Enable<\/strong>.<\/li>\n<li>Save your 8 emergency backup codes.<\/li>\n<\/ol>\n\n<!--section=faq-->\n<dl>\n<dt id=\"which%20mobile%20authenticator%20apps%20are%20supported%3F\"><h3>Which mobile authenticator apps are supported?<\/h3><\/dt>\n<dd><p>Any application supporting the standard RFC 6238 TOTP protocol is supported, including:\n* Google Authenticator (Android \/ iOS)\n* Microsoft Authenticator (Android \/ iOS)\n* 2FAS Authenticator (Open Source, Android \/ iOS)\n* Twilio Authy\n* Bitwarden \/ 1Password \/ Apple Keychain<\/p><\/dd>\n<dt id=\"what%20happens%20if%20i%20lose%20my%20phone%3F\"><h3>What happens if I lose my phone?<\/h3><\/dt>\n<dd><p>You have two immediate recovery methods:\n1. <strong>Email OTP Fallback<\/strong>: Click \"Send Code to Email\" on the login screen to receive a single-use 6-digit code.\n2. <strong>Emergency Backup Codes<\/strong>: Enter any of the 8 recovery codes generated when you set up 2FA.<\/p><\/dd>\n<dt id=\"what%20if%20the%20primary%20administrator%20loses%20both%20their%20phone%20and%20backup%20codes%3F\"><h3>What if the Primary Administrator loses both their phone and backup codes?<\/h3><\/dt>\n<dd><p>For security, other administrators cannot disable 2FA on the Primary Administrator's account from the WordPress dashboard. In that situation, the Primary Administrator can still log in using <strong>Email OTP Fallback<\/strong> (if enabled) or recover access directly via the database by deleting the <code>_two_fa_khalaf_enabled<\/code> user meta row for their user ID.<\/p><\/dd>\n<dt id=\"are%20qr%20codes%20generated%20through%20google%20charts%20or%20any%20external%20service%3F\"><h3>Are QR codes generated through Google Charts or any external service?<\/h3><\/dt>\n<dd><p>No. For maximum privacy and security, QR codes are generated 100% locally in your browser using client-side JavaScript. Your secret key never leaves your server.<\/p><\/dd>\n<dt id=\"can%20administrators%20enforce%202fa%20for%20specific%20user%20roles%3F\"><h3>Can administrators enforce 2FA for specific user roles?<\/h3><\/dt>\n<dd><p>Yes. In the <strong>KHALAF 2FA \u2192 Settings<\/strong> panel, administrators can enforce two-factor authentication on all administrators or any specific user roles (e.g., Shop Manager, Editor).<\/p><\/dd>\n<dt id=\"does%20this%20plugin%20slow%20down%20my%20site%3F\"><h3>Does this plugin slow down my site?<\/h3><\/dt>\n<dd><p>The plugin has zero external dependencies, makes no external HTTP requests, and loads assets only on the login screen and dedicated 2FA administration screens.<\/p><\/dd>\n\n<\/dl>\n\n<!--section=changelog-->\n<h4>1.0.0<\/h4>\n\n<ul>\n<li>Initial public release.<\/li>\n<li>Added TOTP authentication for all standard mobile authenticator apps.<\/li>\n<li>Added Email OTP verification fallback with cooldown rate limiting.<\/li>\n<li>Added hashed emergency backup codes.<\/li>\n<li>Added brute-force lockout protection with live countdown timer.<\/li>\n<li>Added role-based 2FA enforcement and administrative settings hub.<\/li>\n<\/ul>","raw_excerpt":"Secure Two-Factor Authentication (2FA) via mobile authenticator apps (TOTP) with email OTP verification fallback.","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin\/417139","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin"}],"about":[{"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/types\/plugin"}],"replies":[{"embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/comments?post=417139"}],"author":[{"embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wporg\/v1\/users\/khalaf22"}],"wp:attachment":[{"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/media?parent=417139"}],"wp:term":[{"taxonomy":"plugin_section","embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_section?post=417139"},{"taxonomy":"plugin_tags","embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_tags?post=417139"},{"taxonomy":"plugin_category","embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_category?post=417139"},{"taxonomy":"plugin_contributors","embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_contributors?post=417139"},{"taxonomy":"plugin_business_model","embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_business_model?post=417139"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}