Plugin Directory

Changeset 3808151


Ignore:
Timestamp:
11/17/2026 09:12:28 PM (less than one hour ago)
Author:
nicunarcisbodea
Message:

1.0.19: hybrid encryption whenever the phone reads it

Location:
smstunnel
Files:
12 edited
1 copied

Legend:

Unmodified
Added
Removed
  • smstunnel/tags/1.0.19/includes/class-smstunnel-api.php

    r3780347 r3808151  
    121121     */
    122122    private function send_sms_encrypted($to, $message, $public_key, $device_id, $is2FA = false, $e2e_key = array()) {
    123         // Create payload to encrypt
    124         $payload = wp_json_encode(array(
    125             'to' => $to,
    126             'message' => $message
    127         ));
     123        // The number and the words, as the phone reads them. Letters outside ASCII stay UTF-8 (2 to 4 bytes each)
     124        // instead of \uXXXX escapes (6 to 12 bytes): the phone reads either, and the old format has little room.
     125        $json_flags = JSON_UNESCAPED_UNICODE | JSON_UNESCAPED_SLASHES;
     126        $payload    = wp_json_encode(array(
     127            'to'      => $to,
     128            'message' => $message,
     129        ), $json_flags);
     130        if (false === $payload) {
     131            return array(
     132                'success' => false,
     133                'error'   => __('Encryption failed: the text could not be prepared.', 'smstunnel')
     134            );
     135        }
    128136
    129137        // Build PEM from the stored base64 SPKI public key.
    … …  
    140148        }
    141149
    142         // ---- Capability negotiation / gating (v1 vs v2 hybrid) -------------
    143         // v2 hybrid is used ONLY when BOTH are true:
    144         //   1. The site operator has explicitly enabled it (smstunnel_e2e_hybrid == 'yes').
    145         //   2. The paired device advertises support for v2 (e2e_version >= 2).
    146         // Otherwise we fall through to the unchanged v1 (PKCS#1 v1.5) path so
    147         // existing devices keep working exactly as before.
     150        // ---- Which format the phone reads (v1 or v2 hybrid) -----------------
     151        // Recorded when the phone was paired: 2 = the hybrid format (AES-256-GCM + RSA-OAEP, SMSTunnel app
     152        // 1.0.8 or newer), with no length limit; 1 = RSA alone. A phone that reads the hybrid format always
     153        // gets it. Up to 1.0.18 it also needed the "Use hybrid encryption (v2)" setting, off unless an
     154        // administrator turned it on, so texts in other alphabets were often too long. A phone paired as v1
     155        // keeps v1 (PKCS#1 v1.5), exactly as before.
    148156        $device_e2e_version = isset($e2e_key['e2e_version']) ? (int) $e2e_key['e2e_version'] : 1;
    149         $hybrid_enabled     = get_option('smstunnel_e2e_hybrid', 'no') === 'yes';
    150         $use_v2             = $hybrid_enabled && $device_e2e_version >= 2;
    151157
    152158        $encrypted_payload = '';
    153159
    154         if ($use_v2) {
     160        if ($device_e2e_version >= 2) {
    155161            // Padded so the packet's size doesn't give away how long the text is. The phone ignores the
    156162            // extra field. v1 can't take it: RSA alone has room for about 245 bytes.
    … …  
    159165                'message' => $message,
    160166                'pad'     => str_repeat(' ', 256 - (strlen($payload) % 256)),
    161             ));
    162             $v2 = $this->encrypt_payload_v2($padded, $key_resource);
     167            ), $json_flags);
     168            $v2 = (false === $padded) ? false : $this->encrypt_payload_v2($padded, $key_resource);
    163169            if ($v2 !== false) {
    164170                $encrypted_payload = $v2;
    165171            }
    166172            // If v2 fails for any reason (cipher unavailable, OAEP error), fall
    167             // back to v1 below so the message still goes out.
     173            // back to v1 below so a text that fits still goes out.
    168174        }
    169175
    170176        if ($encrypted_payload === '') {
    171             // ---- v1 (legacy) path -- UNCHANGED behaviour ------------------
     177            // ---- v1 (legacy): RSA PKCS#1 v1.5 directly over the payload --------
     178            // RSA-2048 carries 245 bytes: about 200 Latin letters after the number, or about 100 Cyrillic,
     179            // Arabic or Greek ones, 65 Chinese ones or 50 emoji. Say so plainly instead of OpenSSL's error.
     180            $key_details = openssl_pkey_get_details($key_resource);
     181            $max_bytes   = (is_array($key_details) && !empty($key_details['bits'])) ? ((int) $key_details['bits'] / 8) - 11 : 245;
     182            if (strlen($payload) > $max_bytes) {
     183                return array(
     184                    'success' => false,
     185                    'error'   => ($device_e2e_version >= 2)
     186                        ? __('Encryption failed: this text is too long for RSA alone, and this site could not use AES-256-GCM encryption. Ask your host to enable OpenSSL with AES-256-GCM.', 'smstunnel')
     187                        : __('This text is too long for the encryption your phone uses. Update the SMSTunnel app on your phone, then pair it again: SMSTunnel > Settings > End-to-End Encryption, Remove E2E Pairing, then Start E2E Pairing.', 'smstunnel')
     188                );
     189            }
    172190            $encrypted = '';
    173191            // RSA encrypt with PKCS1 v1.5 padding (compatible with Flutter encrypt package)
  • smstunnel/tags/1.0.19/includes/class-smstunnel-quick-setup.php

    r3780347 r3808151  
    203203     * Clears the API key and everything clear_account_state() clears, sets Quick Setup back to its
    204204     * first step and makes a new site token, so a QR code shown before can't complete the setup.
    205      * The site's own settings stay: server URL, language, 2FA, the hybrid encryption choice, form
    206      * texts and the SMS history.
     205     * The site's own settings stay: server URL, language, 2FA, form texts and the SMS history.
    207206     */
    208207    public static function forget_account() {
  • smstunnel/tags/1.0.19/languages/smstunnel.pot

    r3780347 r3808151  
    33msgid ""
    44msgstr ""
    5 "Project-Id-Version: SMSTunnel 1.0.17\n"
     5"Project-Id-Version: SMSTunnel 1.0.19\n"
    66"Report-Msgid-Bugs-To: https://wordpress.org/support/plugin/smstunnel\n"
    77"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
    … …  
    1010"Content-Type: text/plain; charset=UTF-8\n"
    1111"Content-Transfer-Encoding: 8bit\n"
    12 "POT-Creation-Date: 2026-11-02T16:04:43+00:00\n"
     12"POT-Creation-Date: 2026-11-17T15:21:59+00:00\n"
    1313"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
    1414"X-Generator: WP-CLI 2.12.0\n"
    … …  
    4343
    4444#: includes/class-smstunnel-api.php:55
    45 #: includes/class-smstunnel-api.php:316
    46 #: includes/class-smstunnel-api.php:380
    47 #: includes/class-smstunnel-api.php:433
    48 #: includes/class-smstunnel-api.php:493
    49 #: includes/class-smstunnel-api.php:536
    50 #: includes/class-smstunnel-api.php:590
    51 #: smstunnel.php:1605
    52 #: smstunnel.php:1666
     45#: includes/class-smstunnel-api.php:334
     46#: includes/class-smstunnel-api.php:398
     47#: includes/class-smstunnel-api.php:451
     48#: includes/class-smstunnel-api.php:511
     49#: includes/class-smstunnel-api.php:554
     50#: includes/class-smstunnel-api.php:608
     51#: smstunnel.php:1568
     52#: smstunnel.php:1629
    5353msgid "API key not configured."
    5454msgstr ""
    5555
    5656#: includes/class-smstunnel-api.php:107
    57 #: includes/class-smstunnel-api.php:365
    58 #: includes/class-smstunnel-api.php:419
    59 #: includes/class-smstunnel-quick-setup.php:579
     57#: includes/class-smstunnel-api.php:383
     58#: includes/class-smstunnel-api.php:437
     59#: includes/class-smstunnel-quick-setup.php:578
    6060#: includes/class-smstunnel-rest-api.php:162
    6161#: includes/integrations/class-smstunnel-integrations.php:267
    … …  
    6363msgstr ""
    6464
    65 #: includes/class-smstunnel-api.php:138
     65#: includes/class-smstunnel-api.php:133
     66msgid "Encryption failed: the text could not be prepared."
     67msgstr ""
     68
     69#: includes/class-smstunnel-api.php:146
    6670msgid "Invalid device public key. Please re-scan the QR code."
    6771msgstr ""
    6872
    69 #: includes/class-smstunnel-api.php:177
     73#: includes/class-smstunnel-api.php:186
     74msgid "Encryption failed: this text is too long for RSA alone, and this site could not use AES-256-GCM encryption. Ask your host to enable OpenSSL with AES-256-GCM."
     75msgstr ""
     76
     77#: includes/class-smstunnel-api.php:187
     78msgid "This text is too long for the encryption your phone uses. Update the SMSTunnel app on your phone, then pair it again: SMSTunnel > Settings > End-to-End Encryption, Remove E2E Pairing, then Start E2E Pairing."
     79msgstr ""
     80
     81#: includes/class-smstunnel-api.php:195
    7082msgid "Encryption failed. The message may be too long for RSA encryption."
    7183msgstr ""
    7284
    73 #: includes/class-smstunnel-api.php:221
     85#: includes/class-smstunnel-api.php:239
    7486msgid "Failed to send encrypted SMS"
    7587msgstr ""
    7688
    77 #: includes/class-smstunnel-api.php:355
     89#: includes/class-smstunnel-api.php:373
    7890msgid "Invalid 2FA message format"
    7991msgstr ""
    8092
    81 #: includes/class-smstunnel-api.php:468
    82 #: smstunnel.php:1585
     93#: includes/class-smstunnel-api.php:486
     94#: smstunnel.php:1548
    8395msgid "Invalid API key."
    8496msgstr ""
    8597
    86 #: includes/class-smstunnel-api.php:479
     98#: includes/class-smstunnel-api.php:497
    8799msgid "Connection failed."
    88100msgstr ""
    89101
    90 #: includes/class-smstunnel-api.php:522
     102#: includes/class-smstunnel-api.php:540
    91103msgid "Failed to get usage."
    92104msgstr ""
    93105
    94 #: includes/class-smstunnel-api.php:565
     106#: includes/class-smstunnel-api.php:583
    95107msgid "Failed to get status."
    96108msgstr ""
    97109
    98 #: includes/class-smstunnel-api.php:661
     110#: includes/class-smstunnel-api.php:679
    99111msgid "Failed to get received messages."
    100112msgstr ""
    101113
    102114#. translators: %d: number of seconds to wait before retrying
    103 #: includes/class-smstunnel-api.php:684
     115#: includes/class-smstunnel-api.php:702
    104116#, php-format
    105117msgid "Rate limit reached. Please try again in %d seconds."
    106118msgstr ""
    107119
    108 #: includes/class-smstunnel-api.php:688
    109 #: smstunnel.php:1331
     120#: includes/class-smstunnel-api.php:706
     121#: smstunnel.php:1294
    110122msgid "Rate limit reached. Please wait a moment and try again."
    111123msgstr ""
    … …  
    135147msgstr ""
    136148
    137 #: includes/class-smstunnel-quick-setup.php:240
     149#: includes/class-smstunnel-quick-setup.php:239
    138150#: includes/class-smstunnel-setup-notice.php:525
    139 #: smstunnel.php:1498
    140 #: smstunnel.php:1524
    141 #: smstunnel.php:1557
    142 #: smstunnel.php:1600
    143 #: smstunnel.php:1656
    144 #: smstunnel.php:1742
    145 #: smstunnel.php:1858
    146 #: smstunnel.php:1884
    147 #: smstunnel.php:1952
     151#: smstunnel.php:1461
     152#: smstunnel.php:1487
     153#: smstunnel.php:1520
     154#: smstunnel.php:1563
     155#: smstunnel.php:1619
     156#: smstunnel.php:1705
     157#: smstunnel.php:1821
     158#: smstunnel.php:1847
     159#: smstunnel.php:1915
    148160msgid "Permission denied."
    149161msgstr ""
    150162
    151 #: includes/class-smstunnel-quick-setup.php:348
     163#: includes/class-smstunnel-quick-setup.php:347
    152164msgid "Failed to create pairing token"
    153165msgstr ""
    154166
     167#: includes/class-smstunnel-quick-setup.php:381
    155168#: includes/class-smstunnel-quick-setup.php:382
    156 #: includes/class-smstunnel-quick-setup.php:383
    157169#: includes/class-smstunnel-setup-notice.php:457
    158 #: smstunnel.php:621
    159 #: smstunnel.php:1302
    160 #: smstunnel.php:1314
     170#: smstunnel.php:600
     171#: smstunnel.php:1265
     172#: smstunnel.php:1277
    161173msgid "Quick Setup"
    162174msgstr ""
    163175
     176#: includes/class-smstunnel-quick-setup.php:442
     177#: includes/class-smstunnel-quick-setup.php:522
     178msgid "Waiting for QR scan..."
     179msgstr ""
     180
    164181#: includes/class-smstunnel-quick-setup.php:443
    165 #: includes/class-smstunnel-quick-setup.php:523
    166 msgid "Waiting for QR scan..."
     182msgid "Setup completed!"
    167183msgstr ""
    168184
    169185#: includes/class-smstunnel-quick-setup.php:444
    170 msgid "Setup completed!"
     186msgid "Setup failed"
    171187msgstr ""
    172188
    173189#: includes/class-smstunnel-quick-setup.php:445
    174 msgid "Setup failed"
     190msgid "Connected to"
    175191msgstr ""
    176192
    177193#: includes/class-smstunnel-quick-setup.php:446
    178 msgid "Connected to"
     194msgid "Could not generate QR code. Please check your internet connection."
    179195msgstr ""
    180196
    181197#: includes/class-smstunnel-quick-setup.php:447
    182 msgid "Could not generate QR code. Please check your internet connection."
     198msgid "Generate new QR code"
    183199msgstr ""
    184200
    185201#: includes/class-smstunnel-quick-setup.php:448
    186 msgid "Generate new QR code"
    187 msgstr ""
    188 
    189 #: includes/class-smstunnel-quick-setup.php:449
    190202msgid "Generating..."
    191203msgstr ""
    192204
    193 #: includes/class-smstunnel-quick-setup.php:463
     205#: includes/class-smstunnel-quick-setup.php:462
    194206msgid "SMSTunnel Quick Setup"
    195207msgstr ""
    196208
    197 #: includes/class-smstunnel-quick-setup.php:471
     209#: includes/class-smstunnel-quick-setup.php:470
    198210msgid "Setup Complete!"
    199211msgstr ""
    200212
    201213#. translators: %s: device name
    202 #: includes/class-smstunnel-quick-setup.php:476
     214#: includes/class-smstunnel-quick-setup.php:475
    203215#, php-format
    204216msgid "Connected device: %s"
    205217msgstr ""
    206218
    207 #: includes/class-smstunnel-quick-setup.php:479
     219#: includes/class-smstunnel-quick-setup.php:478
    208220msgid "Your site is connected to SMSTunnel."
    209221msgstr ""
    210222
    211 #: includes/class-smstunnel-quick-setup.php:484
     223#: includes/class-smstunnel-quick-setup.php:483
    212224#: smstunnel.php:254
    213225#: smstunnel.php:255
    214 #: smstunnel.php:892
    215 #: smstunnel.php:915
     226#: smstunnel.php:855
     227#: smstunnel.php:878
    216228msgid "Send SMS"
    217229msgstr ""
    218230
    219 #: includes/class-smstunnel-quick-setup.php:487
     231#: includes/class-smstunnel-quick-setup.php:486
    220232#: includes/class-smstunnel-setup-notice.php:465
    221233#: includes/class-smstunnel-setup-notice.php:474
    222234#: smstunnel.php:245
    223235#: smstunnel.php:246
    224 #: smstunnel.php:1303
     236#: smstunnel.php:1266
    225237msgid "Settings"
    226238msgstr ""
    227239
    228 #: includes/class-smstunnel-quick-setup.php:492
     240#: includes/class-smstunnel-quick-setup.php:491
    229241msgid "Reset and setup again"
    230242msgstr ""
    231243
    232 #: includes/class-smstunnel-quick-setup.php:501
     244#: includes/class-smstunnel-quick-setup.php:500
    233245msgid "Setup in 3 simple steps:"
    234246msgstr ""
    235247
    236 #: includes/class-smstunnel-quick-setup.php:506
     248#: includes/class-smstunnel-quick-setup.php:505
    237249msgid "Download the SMSTunnel app"
    238250msgstr ""
    239251
    240 #: includes/class-smstunnel-quick-setup.php:516
     252#: includes/class-smstunnel-quick-setup.php:515
    241253msgid "Scan this QR code"
    242254msgstr ""
    243255
    244 #: includes/class-smstunnel-quick-setup.php:519
     256#: includes/class-smstunnel-quick-setup.php:518
    245257msgid "Open the SMSTunnel app and scan this code"
    246258msgstr ""
    247259
     260#: includes/class-smstunnel-quick-setup.php:530
     261msgid "Done! Start sending SMS"
     262msgstr ""
     263
    248264#: includes/class-smstunnel-quick-setup.php:531
    249 msgid "Done! Start sending SMS"
    250 msgstr ""
    251 
    252 #: includes/class-smstunnel-quick-setup.php:532
    253265msgid "Once connected, you can send SMS directly from WordPress."
    254266msgstr ""
    255267
    256 #: includes/class-smstunnel-quick-setup.php:539
     268#: includes/class-smstunnel-quick-setup.php:538
    257269msgid "Already have an SMSTunnel account?"
    258270msgstr ""
    259271
    260 #: includes/class-smstunnel-quick-setup.php:541
     272#: includes/class-smstunnel-quick-setup.php:540
    261273msgid "Advanced Setup"
    262274msgstr ""
    … …  
    267279
    268280#: includes/class-smstunnel-rest-api.php:176
    269 #: smstunnel.php:1563
     281#: smstunnel.php:1526
    270282msgid "API key is required."
    271283msgstr ""
    … …  
    324336#. translators: %s: technical error details, e.g. "cURL error 28: Operation timed out"
    325337#: includes/class-smstunnel-setup-notice.php:317
    326 #: smstunnel.php:1351
     338#: smstunnel.php:1314
    327339#, php-format
    328340msgid "Details: %s"
    … …  
    432444#: includes/integrations/fluent-forms/class-smstunnel-fluent-forms-feed.php:161
    433445#: includes/integrations/forminator/class-smstunnel-forminator-form-settings.php:251
    434 #: smstunnel.php:906
    435 #: smstunnel.php:1030
    436 #: smstunnel.php:1165
     446#: smstunnel.php:869
     447#: smstunnel.php:993
     448#: smstunnel.php:1128
    437449msgid "Message"
    438450msgstr ""
    … …  
    455467
    456468#: includes/integrations/fluent-forms/class-smstunnel-fluent-forms-feed.php:186
    457 #: smstunnel.php:1031
     469#: smstunnel.php:994
    458470msgid "Status"
    459471msgstr ""
    … …  
    649661#: smstunnel.php:263
    650662#: smstunnel.php:264
    651 #: smstunnel.php:996
     663#: smstunnel.php:959
    652664msgid "SMS History"
    653665msgstr ""
    … …  
    663675msgstr ""
    664676
    665 #: smstunnel.php:323
     677#: smstunnel.php:320
    666678msgid "API Configuration"
    667679msgstr ""
    668680
    669 #: smstunnel.php:330
     681#: smstunnel.php:327
    670682msgid "Server URL"
    671683msgstr ""
    672684
    673 #: smstunnel.php:338
     685#: smstunnel.php:335
    674686msgid "API Key"
    675687msgstr ""
    676688
    677 #: smstunnel.php:346
     689#: smstunnel.php:343
    678690msgid "Device ID"
    679691msgstr ""
    680692
    681 #: smstunnel.php:355
     693#: smstunnel.php:352
    682694msgid "General Settings"
    683695msgstr ""
    684696
    685 #: smstunnel.php:362
     697#: smstunnel.php:359
    686698msgid "Language"
    687699msgstr ""
    688700
    689 #: smstunnel.php:371
     701#: smstunnel.php:368
    690702msgid "Two-Factor Authentication (2FA)"
    691703msgstr ""
    692704
    693 #: smstunnel.php:378
     705#: smstunnel.php:375
    694706msgid "WordPress Login 2FA"
    695707msgstr ""
    696708
    697 #: smstunnel.php:386
     709#: smstunnel.php:383
    698710msgid "Require 2FA for roles"
    699711msgstr ""
    700712
    701 #: smstunnel.php:394
     713#: smstunnel.php:391
    702714msgid "Code expiry (minutes)"
    703715msgstr ""
    704716
    705 #: smstunnel.php:402
     717#: smstunnel.php:399
    706718msgid "Code length"
    707719msgstr ""
    708720
    709 #: smstunnel.php:410
     721#: smstunnel.php:407
    710722msgid "2FA Message Template"
    711723msgstr ""
    712724
    713 #: smstunnel.php:418
     725#: smstunnel.php:415
    714726msgid "Server Fallback"
    715727msgstr ""
    716728
    717 #: smstunnel.php:426
     729#: smstunnel.php:423
    718730msgid "Remember Device"
    719731msgstr ""
    720732
    721 #: smstunnel.php:434
     733#: smstunnel.php:431
    722734msgid "Remember Duration (days)"
    723735msgstr ""
    724736
    725 #: smstunnel.php:443
     737#: smstunnel.php:440
    726738msgid "End-to-End Encryption"
    727739msgstr ""
    728740
    729 #: smstunnel.php:450
     741#: smstunnel.php:447
    730742msgid "Device Public Key"
    731743msgstr ""
    732744
    733 #: smstunnel.php:458
    734 msgid "Hybrid Encryption (v2)"
    735 msgstr ""
    736 
    737745#. translators: %s: link to the Apps page of the SMSTunnel dashboard
    738 #: smstunnel.php:482
     746#: smstunnel.php:461
    739747#, php-format
    740748msgid "Configure your SMSTunnel API credentials. Get your API key from %s"
    741749msgstr ""
    742750
    743 #: smstunnel.php:495
     751#: smstunnel.php:474
    744752msgid "API endpoint URL: https://smstunnel.io/api/v1"
    745753msgstr ""
    746754
     755#: smstunnel.php:522
     756#: smstunnel.php:788
     757#: smstunnel.php:1414
     758msgid "Device:"
     759msgstr ""
     760
     761#: smstunnel.php:522
     762#: smstunnel.php:777
     763#: smstunnel.php:992
     764#: smstunnel.php:1673
     765msgid "Phone"
     766msgstr ""
     767
     768#: smstunnel.php:524
     769msgid "With an API key from your SMSTunnel dashboard"
     770msgstr ""
     771
     772#: smstunnel.php:532
     773msgid "API Key:"
     774msgstr ""
     775
     776#: smstunnel.php:539
     777msgid "Reconnect"
     778msgstr ""
     779
    747780#: smstunnel.php:543
    748 #: smstunnel.php:807
    749 #: smstunnel.php:1451
    750 msgid "Device:"
    751 msgstr ""
    752 
    753 #: smstunnel.php:543
    754 #: smstunnel.php:798
    755 #: smstunnel.php:1029
    756 #: smstunnel.php:1710
    757 msgid "Phone"
    758 msgstr ""
    759 
    760 #: smstunnel.php:545
    761 msgid "With an API key from your SMSTunnel dashboard"
    762 msgstr ""
    763 
    764 #: smstunnel.php:553
    765 msgid "API Key:"
     781msgid "Are you sure you want to disconnect?"
     782msgstr ""
     783
     784#: smstunnel.php:544
     785msgid "Disconnect"
    766786msgstr ""
    767787
    768788#: smstunnel.php:560
    769 msgid "Reconnect"
    770 msgstr ""
    771 
    772 #: smstunnel.php:564
    773 msgid "Are you sure you want to disconnect?"
    774 msgstr ""
    775 
    776 #: smstunnel.php:565
    777 msgid "Disconnect"
    778 msgstr ""
    779 
    780 #: smstunnel.php:581
    781789msgid "Connect with API Key"
    782790msgstr ""
    783791
    784 #: smstunnel.php:584
     792#: smstunnel.php:563
    785793msgid "Connect"
    786794msgstr ""
    787795
    788796#. translators: %s: link to the Apps page of the SMSTunnel dashboard
     797#: smstunnel.php:568
     798#, php-format
     799msgid "Get your API key in %s: Apps, Add an app."
     800msgstr ""
     801
     802#: smstunnel.php:569
     803msgid "your SMSTunnel dashboard"
     804msgstr ""
     805
     806#: smstunnel.php:577
     807msgid "Connect with"
     808msgstr ""
     809
     810#: smstunnel.php:583
     811msgid "Google"
     812msgstr ""
     813
    789814#: smstunnel.php:589
    790 #, php-format
    791 msgid "Get your API key in %s: Apps, Add an app."
    792 msgstr ""
    793 
    794 #: smstunnel.php:590
    795 msgid "your SMSTunnel dashboard"
    796 msgstr ""
    797 
    798 #: smstunnel.php:598
    799 msgid "Connect with"
    800 msgstr ""
    801 
    802 #: smstunnel.php:604
    803 msgid "Google"
     815msgid "Facebook"
     816msgstr ""
     817
     818#: smstunnel.php:597
     819msgid "Scan QR Code"
     820msgstr ""
     821
     822#: smstunnel.php:602
     823msgid "Scan with SMSTunnel app"
     824msgstr ""
     825
     826#: smstunnel.php:608
     827msgid "Connect with Email"
    804828msgstr ""
    805829
    806830#: smstunnel.php:610
    807 msgid "Facebook"
    808 msgstr ""
    809 
    810 #: smstunnel.php:618
    811 msgid "Scan QR Code"
    812 msgstr ""
    813 
    814 #: smstunnel.php:623
    815 msgid "Scan with SMSTunnel app"
    816 msgstr ""
    817 
    818 #: smstunnel.php:629
    819 msgid "Connect with Email"
    820 msgstr ""
    821 
    822 #: smstunnel.php:631
    823831msgid "Email"
    824832msgstr ""
    825833
     834#: smstunnel.php:611
     835msgid "Password"
     836msgstr ""
     837
     838#: smstunnel.php:612
     839msgid "Login"
     840msgstr ""
     841
     842#. translators: %s: registration URL
     843#: smstunnel.php:615
     844#, php-format
     845msgid "Don't have an account? <a href=\"%s\" target=\"_blank\">Register</a>"
     846msgstr ""
     847
    826848#: smstunnel.php:632
    827 msgid "Password"
    828 msgstr ""
    829 
    830 #: smstunnel.php:633
    831 msgid "Login"
    832 msgstr ""
    833 
    834 #. translators: %s: registration URL
    835 #: smstunnel.php:636
    836 #, php-format
    837 msgid "Don't have an account? <a href=\"%s\" target=\"_blank\">Register</a>"
    838 msgstr ""
    839 
    840 #: smstunnel.php:653
    841849msgid "Optional. Specify a device ID to use for sending SMS. Leave empty to use any available device."
    842850msgstr ""
    843851
    844 #: smstunnel.php:660
     852#: smstunnel.php:639
    845853msgid "General plugin settings."
    846854msgstr ""
    847855
    848856#. translators: %s: site locale code
    849 #: smstunnel.php:672
     857#: smstunnel.php:651
    850858#, php-format
    851859msgid "Site default (%s)"
    852860msgstr ""
    853861
    854 #: smstunnel.php:683
     862#: smstunnel.php:662
    855863msgid "Select the language for SMS messages. Default uses the site language."
    856864msgstr ""
    857865
    858 #: smstunnel.php:690
     866#: smstunnel.php:669
    859867msgid "Add SMS-based two-factor authentication. Users need a phone number in their profile."
    860868msgstr ""
    861869
    862 #: smstunnel.php:699
     870#: smstunnel.php:678
    863871msgid "Enable SMS 2FA for WordPress login (wp-login.php)"
    864872msgstr ""
    865873
     874#: smstunnel.php:687
     875msgid "Allow login without 2FA when SMS server is unavailable"
     876msgstr ""
     877
     878#: smstunnel.php:688
     879msgid "Security note: When enabled, users can login without 2FA if the SMS server cannot be reached. This prevents lockouts but reduces security."
     880msgstr ""
     881
     882#: smstunnel.php:697
     883msgid "Allow users to remember this device"
     884msgstr ""
     885
     886#: smstunnel.php:698
     887msgid "Users can skip 2FA on trusted devices. Device trust is based on browser and IP address."
     888msgstr ""
     889
     890#: smstunnel.php:707
     891msgid "days"
     892msgstr ""
     893
    866894#: smstunnel.php:708
    867 msgid "Allow login without 2FA when SMS server is unavailable"
    868 msgstr ""
    869 
    870 #: smstunnel.php:709
    871 msgid "Security note: When enabled, users can login without 2FA if the SMS server cannot be reached. This prevents lockouts but reduces security."
    872 msgstr ""
    873 
    874 #: smstunnel.php:718
    875 msgid "Allow users to remember this device"
    876 msgstr ""
    877 
    878 #: smstunnel.php:719
    879 msgid "Users can skip 2FA on trusted devices. Device trust is based on browser and IP address."
    880 msgstr ""
    881 
    882 #: smstunnel.php:728
    883 msgid "days"
    884 msgstr ""
    885 
    886 #: smstunnel.php:729
    887895msgid "How long a device stays trusted before requiring 2FA again."
    888896msgstr ""
    889897
    890 #: smstunnel.php:746
     898#: smstunnel.php:725
    891899msgid "Select which user roles require 2FA."
    892900msgstr ""
    893901
    894 #: smstunnel.php:755
     902#: smstunnel.php:734
    895903msgid "minutes"
    896904msgstr ""
    897905
    898 #: smstunnel.php:766
     906#: smstunnel.php:745
    899907msgid "digits"
    900908msgstr ""
    901909
    902 #: smstunnel.php:775
     910#: smstunnel.php:754
     911#: smstunnel.php:2290
     912#: smstunnel.php:2755
     913msgid "Your {site_name} verification code is: {code}. Valid for {expiry} minutes."
     914msgstr ""
     915
     916#: smstunnel.php:757
     917msgid "Placeholders: {code}, {site_name}, {expiry}"
     918msgstr ""
     919
     920#: smstunnel.php:764
     921msgid "Enable end-to-end encryption so only your phone can read the words of your texts. The server cannot decrypt them. The number stays visible to it, so your Messages page can show who each text went to."
     922msgstr ""
     923
     924#: smstunnel.php:785
     925msgid "E2E Encryption Active"
     926msgstr ""
     927
     928#: smstunnel.php:789
     929#: smstunnel.php:1415
     930msgid "Fingerprint:"
     931msgstr ""
     932
     933#: smstunnel.php:790
     934msgid "Paired:"
     935msgstr ""
     936
     937#: smstunnel.php:791
     938msgid "Format:"
     939msgstr ""
     940
     941#: smstunnel.php:791
     942msgid "Hybrid: texts of any length, in any alphabet"
     943msgstr ""
     944
     945#: smstunnel.php:791
     946msgid "RSA only: short texts"
     947msgstr ""
     948
     949#: smstunnel.php:794
     950msgid "Encrypted texts to this phone can be about 200 Latin letters long, or about 100 in other alphabets. To send longer ones, update the SMSTunnel app on your phone, then Remove E2E Pairing and pair again."
     951msgstr ""
     952
     953#: smstunnel.php:796
     954msgid "All SMS messages are encrypted before leaving WordPress."
     955msgstr ""
     956
     957#: smstunnel.php:797
     958#: smstunnel.php:1420
     959msgid "Remove E2E Pairing"
     960msgstr ""
     961
     962#: smstunnel.php:802
     963msgid "Pair your phone to enable end-to-end encryption. Messages will be encrypted before leaving WordPress."
     964msgstr ""
     965
     966#: smstunnel.php:805
     967#: smstunnel.php:1412
     968msgid "Start E2E Pairing"
     969msgstr ""
     970
     971#: smstunnel.php:832
     972msgid "Test Connection"
     973msgstr ""
     974
     975#: smstunnel.php:835
     976msgid "Test API Connection"
     977msgstr ""
     978
     979#: smstunnel.php:840
     980msgid "Save Settings"
     981msgstr ""
     982
     983#: smstunnel.php:858
     984msgid "Send a Test SMS"
     985msgstr ""
     986
     987#: smstunnel.php:862
     988#: smstunnel.php:2055
     989#: smstunnel.php:2798
     990msgid "Phone Number"
     991msgstr ""
     992
     993#: smstunnel.php:865
     994msgid "Use E.164 format (e.g., +40712345678)"
     995msgstr ""
     996
     997#: smstunnel.php:871
     998msgid "Enter your message..."
     999msgstr ""
     1000
     1001#: smstunnel.php:900
     1002#: smstunnel.php:1468
     1003msgid "Phone and message are required."
     1004msgstr ""
     1005
     1006#: smstunnel.php:901
     1007#: smstunnel.php:2106
     1008#: smstunnel.php:2141
     1009msgid "Sending..."
     1010msgstr ""
     1011
     1012#: smstunnel.php:902
     1013#: smstunnel.php:1401
     1014msgid "Request failed."
     1015msgstr ""
     1016
     1017#: smstunnel.php:964
     1018msgid "All"
     1019msgstr ""
     1020
     1021#: smstunnel.php:970
     1022msgid "Sent"
     1023msgstr ""
     1024
     1025#: smstunnel.php:976
     1026msgid "Failed"
     1027msgstr ""
     1028
     1029#: smstunnel.php:982
     1030msgid "Pending"
     1031msgstr ""
     1032
     1033#: smstunnel.php:991
     1034msgid "ID"
     1035msgstr ""
     1036
     1037#: smstunnel.php:995
     1038msgid "Type"
     1039msgstr ""
     1040
     1041#: smstunnel.php:996
     1042msgid "Source"
     1043msgstr ""
     1044
     1045#: smstunnel.php:997
     1046msgid "Date"
     1047msgstr ""
     1048
     1049#: smstunnel.php:1003
     1050msgid "No SMS messages found."
     1051msgstr ""
     1052
     1053#: smstunnel.php:1096
     1054msgid "Inbox - Received SMS"
     1055msgstr ""
     1056
     1057#: smstunnel.php:1105
     1058msgid "Filter by phone:"
     1059msgstr ""
     1060
     1061#: smstunnel.php:1107
     1062msgid "Filter"
     1063msgstr ""
     1064
     1065#: smstunnel.php:1109
     1066msgid "Clear"
     1067msgstr ""
     1068
     1069#: smstunnel.php:1114
     1070msgid "Refresh"
     1071msgstr ""
     1072
     1073#. translators: %d: number of messages
     1074#: smstunnel.php:1119
     1075#, php-format
     1076msgid "Total: %d messages"
     1077msgstr ""
     1078
     1079#: smstunnel.php:1127
     1080msgid "From"
     1081msgstr ""
     1082
     1083#: smstunnel.php:1129
     1084msgid "Device"
     1085msgstr ""
     1086
     1087#: smstunnel.php:1130
     1088msgid "Received"
     1089msgstr ""
     1090
     1091#: smstunnel.php:1136
     1092msgid "No received messages found."
     1093msgstr ""
     1094
     1095#: smstunnel.php:1162
     1096msgid "[E2E Encrypted - Viewable only in mobile app]"
     1097msgstr ""
     1098
     1099#: smstunnel.php:1235
     1100msgid "Received texts stay private"
     1101msgstr ""
     1102
     1103#: smstunnel.php:1236
     1104msgid "For privacy, websites linked to SMSTunnel cannot read the texts your phone receives. You can read and answer them on your computer, in your SMSTunnel dashboard."
     1105msgstr ""
     1106
     1107#: smstunnel.php:1237
     1108msgid "Texts show up there once \"Sync received texts\" is turned on in the SMSTunnel app."
     1109msgstr ""
     1110
     1111#: smstunnel.php:1239
     1112msgid "Open Messages in your dashboard"
     1113msgstr ""
     1114
     1115#. translators: 1: "Apps" link to the SMSTunnel dashboard, 2: name of the menu item for that app on that page
     1116#: smstunnel.php:1246
     1117#, php-format
     1118msgid "If this site uses an API key that you created in your SMSTunnel dashboard, the owner of the key can allow it to read received texts: open %1$s in the dashboard and choose \"%2$s\" in the menu of that app."
     1119msgstr ""
     1120
     1121#: smstunnel.php:1247
     1122msgid "Apps"
     1123msgstr ""
     1124
     1125#: smstunnel.php:1248
     1126msgid "Allow reading received texts"
     1127msgstr ""
     1128
     1129#: smstunnel.php:1262
     1130msgid "The API key saved on this site is no longer valid"
     1131msgstr ""
     1132
     1133#: smstunnel.php:1263
     1134msgid "smstunnel.io did not accept it: the key may have been revoked, deleted or deactivated. Link the site again with Quick Setup, or enter a new API key in Settings. Until then, this site cannot send texts either."
     1135msgstr ""
     1136
     1137#: smstunnel.php:1276
     1138msgid "This site is not linked to SMSTunnel yet."
     1139msgstr ""
     1140
     1141#: smstunnel.php:1287
     1142msgid "Could not reach smstunnel.io"
     1143msgstr ""
     1144
     1145#: smstunnel.php:1288
     1146msgid "Check that this site can connect to the internet, then try again in a few minutes."
     1147msgstr ""
     1148
     1149#: smstunnel.php:1290
     1150msgid "smstunnel.io is temporarily unavailable"
     1151msgstr ""
     1152
     1153#: smstunnel.php:1291
     1154#: smstunnel.php:1300
     1155msgid "Please try again in a few minutes."
     1156msgstr ""
     1157
     1158#: smstunnel.php:1299
     1159msgid "Could not load received texts"
     1160msgstr ""
     1161
     1162#: smstunnel.php:1318
     1163msgid "Try again"
     1164msgstr ""
     1165
     1166#: smstunnel.php:1332
     1167msgid "Developer Documentation"
     1168msgstr ""
     1169
     1170#: smstunnel.php:1335
     1171msgid "Sending SMS from Your Code"
     1172msgstr ""
     1173
     1174#: smstunnel.php:1336
     1175msgid "Use the global function to send SMS from anywhere in your WordPress code:"
     1176msgstr ""
     1177
     1178#: smstunnel.php:1354
     1179msgid "Using Action Hook"
     1180msgstr ""
     1181
     1182#: smstunnel.php:1400
     1183msgid "Testing..."
     1184msgstr ""
     1185
     1186#: smstunnel.php:1402
     1187msgid "Connecting..."
     1188msgstr ""
     1189
     1190#: smstunnel.php:1403
     1191msgid "Connected! Reloading..."
     1192msgstr ""
     1193
     1194#: smstunnel.php:1404
     1195msgid "Connection failed"
     1196msgstr ""
     1197
     1198#: smstunnel.php:1405
     1199#: smstunnel.php:2109
     1200#: smstunnel.php:2144
     1201msgid "Verifying..."
     1202msgstr ""
     1203
     1204#: smstunnel.php:1406
     1205#: smstunnel.php:1898
     1206#: smstunnel.php:1972
     1207msgid "Connected successfully!"
     1208msgstr ""
     1209
     1210#: smstunnel.php:1407
     1211msgid "Verification failed"
     1212msgstr ""
     1213
     1214#: smstunnel.php:1408
     1215msgid "Starting..."
     1216msgstr ""
     1217
     1218#: smstunnel.php:1409
     1219msgid "Waiting for phone..."
     1220msgstr ""
     1221
     1222#: smstunnel.php:1410
     1223msgid "Open SMSTunnel app → Settings → Encryption Settings → Scan E2E QR"
     1224msgstr ""
     1225
     1226#: smstunnel.php:1411
     1227msgid "Cancel Pairing"
     1228msgstr ""
     1229
     1230#: smstunnel.php:1413
     1231msgid "E2E Pairing Complete!"
     1232msgstr ""
     1233
     1234#: smstunnel.php:1416
     1235msgid "Refreshing page..."
     1236msgstr ""
     1237
     1238#: smstunnel.php:1417
     1239msgid "Pairing expired. Please try again."
     1240msgstr ""
     1241
     1242#: smstunnel.php:1418
     1243msgid "Are you sure you want to remove E2E encryption? Messages will no longer be encrypted."
     1244msgstr ""
     1245
     1246#: smstunnel.php:1419
     1247msgid "Removing..."
     1248msgstr ""
     1249
     1250#: smstunnel.php:1474
     1251msgid "SMS sent successfully!"
     1252msgstr ""
     1253
     1254#. translators: %1$d: total devices, %2$d: online devices
     1255#: smstunnel.php:1502
     1256#, php-format
     1257msgid "Connected! %1$d device(s) found, %2$d online."
     1258msgstr ""
     1259
     1260#: smstunnel.php:1543
     1261msgid "API key verified successfully!"
     1262msgstr ""
     1263
     1264#: smstunnel.php:1550
     1265#: smstunnel.php:1594
     1266#: smstunnel.php:1650
     1267msgid "Connection failed: "
     1268msgstr ""
     1269
     1270#: smstunnel.php:1552
     1271msgid "Verification failed. Status: "
     1272msgstr ""
     1273
     1274#: smstunnel.php:1607
     1275msgid "Failed to start pairing"
     1276msgstr ""
     1277
     1278#: smstunnel.php:1624
     1279msgid "Token is required."
     1280msgstr ""
     1281
     1282#: smstunnel.php:1691
     1283msgid "Pairing expired or not found."
     1284msgstr ""
     1285
     1286#: smstunnel.php:1693
     1287msgid "Failed to check status"
     1288msgstr ""
     1289
     1290#: smstunnel.php:1739
     1291msgid "Invalid OAuth state. Please try again."
     1292msgstr ""
     1293
     1294#: smstunnel.php:1826
     1295msgid "Security check failed."
     1296msgstr ""
     1297
     1298#: smstunnel.php:1855
     1299msgid "Invalid authentication data."
     1300msgstr ""
     1301
     1302#: smstunnel.php:1902
     1303msgid "Authentication failed."
     1304msgstr ""
     1305
     1306#: smstunnel.php:1923
     1307msgid "Please enter email and password."
     1308msgstr ""
     1309
     1310#: smstunnel.php:1976
     1311msgid "Invalid email or password."
     1312msgstr ""
     1313
     1314#: smstunnel.php:2033
     1315#: smstunnel.php:2065
     1316msgid "Verification Code"
     1317msgstr ""
     1318
     1319#. translators: %d: number of days
     1320#: smstunnel.php:2044
     1321#, php-format
     1322msgid "Remember this device for %d days"
     1323msgstr ""
     1324
     1325#: smstunnel.php:2060
     1326#: smstunnel.php:2107
     1327#: smstunnel.php:2142
     1328msgid "Send Verification Code"
     1329msgstr ""
     1330
     1331#: smstunnel.php:2070
     1332#: smstunnel.php:2110
     1333#: smstunnel.php:2145
     1334msgid "Verify Code"
     1335msgstr ""
     1336
     1337#: smstunnel.php:2076
     1338#: smstunnel.php:2112
     1339msgid "Skip - I don't have my phone"
     1340msgstr ""
     1341
     1342#: smstunnel.php:2079
     1343msgid "You will need to add your phone number later from your profile."
     1344msgstr ""
     1345
     1346#: smstunnel.php:2097
     1347#: smstunnel.php:2132
     1348msgid "Checking..."
     1349msgstr ""
     1350
     1351#: smstunnel.php:2098
     1352#: smstunnel.php:2133
     1353msgid "Verifying credentials..."
     1354msgstr ""
     1355
     1356#: smstunnel.php:2099
     1357#: smstunnel.php:2134
     1358msgid "Please enter the verification code"
     1359msgstr ""
     1360
     1361#: smstunnel.php:2100
     1362#: smstunnel.php:2135
     1363msgid "Request timeout. Please try again."
     1364msgstr ""
     1365
     1366#: smstunnel.php:2101
     1367#: smstunnel.php:2136
     1368msgid "Connection error. Please try again."
     1369msgstr ""
     1370
     1371#: smstunnel.php:2102
     1372#: smstunnel.php:2137
     1373msgid "Server error. Please try again."
     1374msgstr ""
     1375
     1376#: smstunnel.php:2103
     1377#: smstunnel.php:2138
     1378msgid "Logging in..."
     1379msgstr ""
     1380
     1381#: smstunnel.php:2104
     1382#: smstunnel.php:2139
     1383msgid "SMS server unavailable - logging in without 2FA"
     1384msgstr ""
     1385
     1386#: smstunnel.php:2105
     1387#: smstunnel.php:2140
     1388msgid "Please enter your phone number."
     1389msgstr ""
     1390
     1391#: smstunnel.php:2108
     1392#: smstunnel.php:2143
     1393msgid "Please enter the verification code."
     1394msgstr ""
     1395
     1396#: smstunnel.php:2111
     1397#: smstunnel.php:2146
     1398msgid "Skipping..."
     1399msgstr ""
     1400
     1401#: smstunnel.php:2113
     1402#: smstunnel.php:2148
     1403msgid "Error. Please try again."
     1404msgstr ""
     1405
     1406#: smstunnel.php:2147
     1407msgid "Skip - I do not have my phone"
     1408msgstr ""
     1409
     1410#: smstunnel.php:2164
     1411msgid "Username and password required."
     1412msgstr ""
     1413
     1414#: smstunnel.php:2170
     1415msgid "Invalid username or password."
     1416msgstr ""
     1417
     1418#: smstunnel.php:2180
     1419msgid "SMS service unavailable - logging in without 2FA"
     1420msgstr ""
     1421
     1422#: smstunnel.php:2225
     1423msgid "Phone number required for 2FA. Please enter your phone number."
     1424msgstr ""
     1425
     1426#: smstunnel.php:2244
     1427msgid "Invalid phone - 2FA bypassed"
     1428msgstr ""
     1429
     1430#: smstunnel.php:2247
     1431msgid "Invalid phone number format."
     1432msgstr ""
     1433
     1434#. translators: %s: masked phone number
     1435#: smstunnel.php:2272
     1436#, php-format
     1437msgid "Code already sent to %s"
     1438msgstr ""
     1439
     1440#: smstunnel.php:2282
     1441#: smstunnel.php:2367
     1442#: smstunnel.php:2370
     1443msgid "Too many requests, please try again later."
     1444msgstr ""
     1445
     1446#. translators: %s: masked phone number
     1447#: smstunnel.php:2308
     1448#, php-format
     1449msgid "Code sent to %s"
     1450msgstr ""
     1451
     1452#: smstunnel.php:2313
     1453msgid "Failed to send code."
     1454msgstr ""
     1455
    9031456#: smstunnel.php:2327
    904 #: smstunnel.php:2792
    905 msgid "Your {site_name} verification code is: {code}. Valid for {expiry} minutes."
    906 msgstr ""
    907 
    908 #: smstunnel.php:778
    909 msgid "Placeholders: {code}, {site_name}, {expiry}"
    910 msgstr ""
    911 
    912 #: smstunnel.php:785
    913 msgid "Enable end-to-end encryption so only your phone can read the words of your texts. The server cannot decrypt them. The number stays visible to it, so your Messages page can show who each text went to."
    914 msgstr ""
    915 
    916 #: smstunnel.php:804
    917 msgid "E2E Encryption Active"
    918 msgstr ""
    919 
    920 #: smstunnel.php:808
    921 #: smstunnel.php:1452
    922 msgid "Fingerprint:"
    923 msgstr ""
    924 
    925 #: smstunnel.php:809
    926 msgid "Paired:"
    927 msgstr ""
    928 
    929 #: smstunnel.php:811
    930 msgid "All SMS messages are encrypted before leaving WordPress."
    931 msgstr ""
    932 
    933 #: smstunnel.php:812
    934 #: smstunnel.php:1457
    935 msgid "Remove E2E Pairing"
    936 msgstr ""
    937 
    938 #: smstunnel.php:817
    939 msgid "Pair your phone to enable end-to-end encryption. Messages will be encrypted before leaving WordPress."
    940 msgstr ""
    941 
    942 #: smstunnel.php:820
    943 #: smstunnel.php:1449
    944 msgid "Start E2E Pairing"
    945 msgstr ""
    946 
    947 #: smstunnel.php:844
    948 msgid "Use hybrid encryption (v2)"
    949 msgstr ""
    950 
    951 #: smstunnel.php:847
    952 msgid "Encrypts long messages reliably using AES-256-GCM + RSA-OAEP instead of plain RSA. Requires an up-to-date SMSTunnel app that supports v2 pairing. Leave OFF until your phone app is updated and you have tested a message end-to-end. When OFF, the original (v1) encryption is used."
    953 msgstr ""
    954 
    955 #: smstunnel.php:869
    956 msgid "Test Connection"
    957 msgstr ""
    958 
    959 #: smstunnel.php:872
    960 msgid "Test API Connection"
    961 msgstr ""
    962 
    963 #: smstunnel.php:877
    964 msgid "Save Settings"
    965 msgstr ""
    966 
    967 #: smstunnel.php:895
    968 msgid "Send a Test SMS"
    969 msgstr ""
    970 
    971 #: smstunnel.php:899
    972 #: smstunnel.php:2092
    973 #: smstunnel.php:2835
    974 msgid "Phone Number"
    975 msgstr ""
    976 
    977 #: smstunnel.php:902
    978 msgid "Use E.164 format (e.g., +40712345678)"
    979 msgstr ""
    980 
    981 #: smstunnel.php:908
    982 msgid "Enter your message..."
    983 msgstr ""
    984 
    985 #: smstunnel.php:937
    986 #: smstunnel.php:1505
    987 msgid "Phone and message are required."
    988 msgstr ""
    989 
    990 #: smstunnel.php:938
    991 #: smstunnel.php:2143
    992 #: smstunnel.php:2178
    993 msgid "Sending..."
    994 msgstr ""
    995 
    996 #: smstunnel.php:939
    997 #: smstunnel.php:1438
    998 msgid "Request failed."
    999 msgstr ""
    1000 
    1001 #: smstunnel.php:1001
    1002 msgid "All"
    1003 msgstr ""
    1004 
    1005 #: smstunnel.php:1007
    1006 msgid "Sent"
    1007 msgstr ""
    1008 
    1009 #: smstunnel.php:1013
    1010 msgid "Failed"
    1011 msgstr ""
    1012 
    1013 #: smstunnel.php:1019
    1014 msgid "Pending"
    1015 msgstr ""
    1016 
    1017 #: smstunnel.php:1028
    1018 msgid "ID"
    1019 msgstr ""
    1020 
    1021 #: smstunnel.php:1032
    1022 msgid "Type"
    1023 msgstr ""
    1024 
    1025 #: smstunnel.php:1033
    1026 msgid "Source"
    1027 msgstr ""
    1028 
    1029 #: smstunnel.php:1034
    1030 msgid "Date"
    1031 msgstr ""
    1032 
    1033 #: smstunnel.php:1040
    1034 msgid "No SMS messages found."
    1035 msgstr ""
    1036 
    1037 #: smstunnel.php:1133
    1038 msgid "Inbox - Received SMS"
    1039 msgstr ""
    1040 
    1041 #: smstunnel.php:1142
    1042 msgid "Filter by phone:"
    1043 msgstr ""
    1044 
    1045 #: smstunnel.php:1144
    1046 msgid "Filter"
    1047 msgstr ""
    1048 
    1049 #: smstunnel.php:1146
    1050 msgid "Clear"
    1051 msgstr ""
    1052 
    1053 #: smstunnel.php:1151
    1054 msgid "Refresh"
    1055 msgstr ""
    1056 
    1057 #. translators: %d: number of messages
    1058 #: smstunnel.php:1156
    1059 #, php-format
    1060 msgid "Total: %d messages"
    1061 msgstr ""
    1062 
    1063 #: smstunnel.php:1164
    1064 msgid "From"
    1065 msgstr ""
    1066 
    1067 #: smstunnel.php:1166
    1068 msgid "Device"
    1069 msgstr ""
    1070 
    1071 #: smstunnel.php:1167
    1072 msgid "Received"
    1073 msgstr ""
    1074 
    1075 #: smstunnel.php:1173
    1076 msgid "No received messages found."
    1077 msgstr ""
    1078 
    1079 #: smstunnel.php:1199
    1080 msgid "[E2E Encrypted - Viewable only in mobile app]"
    1081 msgstr ""
    1082 
    1083 #: smstunnel.php:1272
    1084 msgid "Received texts stay private"
    1085 msgstr ""
    1086 
    1087 #: smstunnel.php:1273
    1088 msgid "For privacy, websites linked to SMSTunnel cannot read the texts your phone receives. You can read and answer them on your computer, in your SMSTunnel dashboard."
    1089 msgstr ""
    1090 
    1091 #: smstunnel.php:1274
    1092 msgid "Texts show up there once \"Sync received texts\" is turned on in the SMSTunnel app."
    1093 msgstr ""
    1094 
    1095 #: smstunnel.php:1276
    1096 msgid "Open Messages in your dashboard"
    1097 msgstr ""
    1098 
    1099 #. translators: 1: "Apps" link to the SMSTunnel dashboard, 2: name of the menu item for that app on that page
    1100 #: smstunnel.php:1283
    1101 #, php-format
    1102 msgid "If this site uses an API key that you created in your SMSTunnel dashboard, the owner of the key can allow it to read received texts: open %1$s in the dashboard and choose \"%2$s\" in the menu of that app."
    1103 msgstr ""
    1104 
    1105 #: smstunnel.php:1284
    1106 msgid "Apps"
    1107 msgstr ""
    1108 
    1109 #: smstunnel.php:1285
    1110 msgid "Allow reading received texts"
    1111 msgstr ""
    1112 
    1113 #: smstunnel.php:1299
    1114 msgid "The API key saved on this site is no longer valid"
    1115 msgstr ""
    1116 
    1117 #: smstunnel.php:1300
    1118 msgid "smstunnel.io did not accept it: the key may have been revoked, deleted or deactivated. Link the site again with Quick Setup, or enter a new API key in Settings. Until then, this site cannot send texts either."
    1119 msgstr ""
    1120 
    1121 #: smstunnel.php:1313
    1122 msgid "This site is not linked to SMSTunnel yet."
    1123 msgstr ""
    1124 
    1125 #: smstunnel.php:1324
    1126 msgid "Could not reach smstunnel.io"
    1127 msgstr ""
    1128 
    1129 #: smstunnel.php:1325
    1130 msgid "Check that this site can connect to the internet, then try again in a few minutes."
    1131 msgstr ""
    1132 
    1133 #: smstunnel.php:1327
    1134 msgid "smstunnel.io is temporarily unavailable"
    1135 msgstr ""
    1136 
    1137 #: smstunnel.php:1328
    1138 #: smstunnel.php:1337
    1139 msgid "Please try again in a few minutes."
    1140 msgstr ""
    1141 
    1142 #: smstunnel.php:1336
    1143 msgid "Could not load received texts"
    1144 msgstr ""
    1145 
    1146 #: smstunnel.php:1355
    1147 msgid "Try again"
    1148 msgstr ""
    1149 
    1150 #: smstunnel.php:1369
    1151 msgid "Developer Documentation"
    1152 msgstr ""
    1153 
    1154 #: smstunnel.php:1372
    1155 msgid "Sending SMS from Your Code"
    1156 msgstr ""
    1157 
    1158 #: smstunnel.php:1373
    1159 msgid "Use the global function to send SMS from anywhere in your WordPress code:"
    1160 msgstr ""
    1161 
    1162 #: smstunnel.php:1391
    1163 msgid "Using Action Hook"
    1164 msgstr ""
    1165 
    1166 #: smstunnel.php:1437
    1167 msgid "Testing..."
    1168 msgstr ""
    1169 
    1170 #: smstunnel.php:1439
    1171 msgid "Connecting..."
    1172 msgstr ""
    1173 
    1174 #: smstunnel.php:1440
    1175 msgid "Connected! Reloading..."
    1176 msgstr ""
    1177 
    1178 #: smstunnel.php:1441
    1179 msgid "Connection failed"
    1180 msgstr ""
    1181 
    1182 #: smstunnel.php:1442
    1183 #: smstunnel.php:2146
    1184 #: smstunnel.php:2181
    1185 msgid "Verifying..."
    1186 msgstr ""
    1187 
    1188 #: smstunnel.php:1443
    1189 #: smstunnel.php:1935
    1190 #: smstunnel.php:2009
    1191 msgid "Connected successfully!"
    1192 msgstr ""
    1193 
    1194 #: smstunnel.php:1444
    1195 msgid "Verification failed"
    1196 msgstr ""
    1197 
    1198 #: smstunnel.php:1445
    1199 msgid "Starting..."
    1200 msgstr ""
    1201 
    1202 #: smstunnel.php:1446
    1203 msgid "Waiting for phone..."
    1204 msgstr ""
    1205 
    1206 #: smstunnel.php:1447
    1207 msgid "Open SMSTunnel app → Settings → Encryption Settings → Scan E2E QR"
    1208 msgstr ""
    1209 
    1210 #: smstunnel.php:1448
    1211 msgid "Cancel Pairing"
    1212 msgstr ""
    1213 
    1214 #: smstunnel.php:1450
    1215 msgid "E2E Pairing Complete!"
    1216 msgstr ""
    1217 
    1218 #: smstunnel.php:1453
    1219 msgid "Refreshing page..."
    1220 msgstr ""
    1221 
    1222 #: smstunnel.php:1454
    1223 msgid "Pairing expired. Please try again."
    1224 msgstr ""
    1225 
    1226 #: smstunnel.php:1455
    1227 msgid "Are you sure you want to remove E2E encryption? Messages will no longer be encrypted."
    1228 msgstr ""
    1229 
    1230 #: smstunnel.php:1456
    1231 msgid "Removing..."
    1232 msgstr ""
    1233 
    1234 #: smstunnel.php:1511
    1235 msgid "SMS sent successfully!"
    1236 msgstr ""
    1237 
    1238 #. translators: %1$d: total devices, %2$d: online devices
    1239 #: smstunnel.php:1539
    1240 #, php-format
    1241 msgid "Connected! %1$d device(s) found, %2$d online."
    1242 msgstr ""
    1243 
    1244 #: smstunnel.php:1580
    1245 msgid "API key verified successfully!"
    1246 msgstr ""
    1247 
    1248 #: smstunnel.php:1587
    1249 #: smstunnel.php:1631
    1250 #: smstunnel.php:1687
    1251 msgid "Connection failed: "
    1252 msgstr ""
    1253 
    1254 #: smstunnel.php:1589
    1255 msgid "Verification failed. Status: "
    1256 msgstr ""
    1257 
    1258 #: smstunnel.php:1644
    1259 msgid "Failed to start pairing"
    1260 msgstr ""
    1261 
    1262 #: smstunnel.php:1661
    1263 msgid "Token is required."
    1264 msgstr ""
    1265 
    1266 #: smstunnel.php:1728
    1267 msgid "Pairing expired or not found."
    1268 msgstr ""
    1269 
    1270 #: smstunnel.php:1730
    1271 msgid "Failed to check status"
    1272 msgstr ""
    1273 
    1274 #: smstunnel.php:1776
    1275 msgid "Invalid OAuth state. Please try again."
    1276 msgstr ""
    1277 
    1278 #: smstunnel.php:1863
    1279 msgid "Security check failed."
    1280 msgstr ""
    1281 
    1282 #: smstunnel.php:1892
    1283 msgid "Invalid authentication data."
    1284 msgstr ""
    1285 
    1286 #: smstunnel.php:1939
    1287 msgid "Authentication failed."
    1288 msgstr ""
    1289 
    1290 #: smstunnel.php:1960
    1291 msgid "Please enter email and password."
    1292 msgstr ""
    1293 
    1294 #: smstunnel.php:2013
    1295 msgid "Invalid email or password."
    1296 msgstr ""
    1297 
    1298 #: smstunnel.php:2070
    1299 #: smstunnel.php:2102
    1300 msgid "Verification Code"
    1301 msgstr ""
    1302 
    1303 #. translators: %d: number of days
    1304 #: smstunnel.php:2081
    1305 #, php-format
    1306 msgid "Remember this device for %d days"
    1307 msgstr ""
    1308 
    1309 #: smstunnel.php:2097
    1310 #: smstunnel.php:2144
    1311 #: smstunnel.php:2179
    1312 msgid "Send Verification Code"
    1313 msgstr ""
    1314 
    1315 #: smstunnel.php:2107
    1316 #: smstunnel.php:2147
    1317 #: smstunnel.php:2182
    1318 msgid "Verify Code"
    1319 msgstr ""
    1320 
    1321 #: smstunnel.php:2113
    1322 #: smstunnel.php:2149
    1323 msgid "Skip - I don't have my phone"
    1324 msgstr ""
    1325 
    1326 #: smstunnel.php:2116
    1327 msgid "You will need to add your phone number later from your profile."
    1328 msgstr ""
    1329 
    1330 #: smstunnel.php:2134
    1331 #: smstunnel.php:2169
    1332 msgid "Checking..."
    1333 msgstr ""
    1334 
    1335 #: smstunnel.php:2135
    1336 #: smstunnel.php:2170
    1337 msgid "Verifying credentials..."
    1338 msgstr ""
    1339 
    1340 #: smstunnel.php:2136
    1341 #: smstunnel.php:2171
    1342 msgid "Please enter the verification code"
    1343 msgstr ""
    1344 
    1345 #: smstunnel.php:2137
    1346 #: smstunnel.php:2172
    1347 msgid "Request timeout. Please try again."
    1348 msgstr ""
    1349 
    1350 #: smstunnel.php:2138
    1351 #: smstunnel.php:2173
    1352 msgid "Connection error. Please try again."
    1353 msgstr ""
    1354 
    1355 #: smstunnel.php:2139
    1356 #: smstunnel.php:2174
    1357 msgid "Server error. Please try again."
    1358 msgstr ""
    1359 
    1360 #: smstunnel.php:2140
    1361 #: smstunnel.php:2175
    1362 msgid "Logging in..."
    1363 msgstr ""
    1364 
    1365 #: smstunnel.php:2141
    1366 #: smstunnel.php:2176
    1367 msgid "SMS server unavailable - logging in without 2FA"
    1368 msgstr ""
    1369 
    1370 #: smstunnel.php:2142
    1371 #: smstunnel.php:2177
    1372 msgid "Please enter your phone number."
    1373 msgstr ""
    1374 
    1375 #: smstunnel.php:2145
    1376 #: smstunnel.php:2180
    1377 msgid "Please enter the verification code."
    1378 msgstr ""
    1379 
    1380 #: smstunnel.php:2148
    1381 #: smstunnel.php:2183
    1382 msgid "Skipping..."
    1383 msgstr ""
    1384 
    1385 #: smstunnel.php:2150
    1386 #: smstunnel.php:2185
    1387 msgid "Error. Please try again."
    1388 msgstr ""
    1389 
    1390 #: smstunnel.php:2184
    1391 msgid "Skip - I do not have my phone"
    1392 msgstr ""
    1393 
    1394 #: smstunnel.php:2201
    1395 msgid "Username and password required."
    1396 msgstr ""
    1397 
    1398 #: smstunnel.php:2207
    1399 msgid "Invalid username or password."
    1400 msgstr ""
    1401 
    1402 #: smstunnel.php:2217
    1403 msgid "SMS service unavailable - logging in without 2FA"
    1404 msgstr ""
    1405 
    1406 #: smstunnel.php:2262
    1407 msgid "Phone number required for 2FA. Please enter your phone number."
    1408 msgstr ""
    1409 
    1410 #: smstunnel.php:2281
    1411 msgid "Invalid phone - 2FA bypassed"
    1412 msgstr ""
    1413 
    1414 #: smstunnel.php:2284
    1415 msgid "Invalid phone number format."
     1457msgid "SMS unavailable - 2FA bypassed"
     1458msgstr ""
     1459
     1460#: smstunnel.php:2347
     1461#: smstunnel.php:2417
     1462#: smstunnel.php:2475
     1463msgid "Session expired. Please try logging in again."
     1464msgstr ""
     1465
     1466#: smstunnel.php:2353
     1467msgid "Invalid phone number format. Please use international format (e.g., +40712345678)."
     1468msgstr ""
     1469
     1470#: smstunnel.php:2358
     1471msgid "Premium-rate numbers are not allowed. Please use a standard mobile number."
     1472msgstr ""
     1473
     1474#. translators: %1$s: site name, %2$s: verification code, %3$d: minutes
     1475#: smstunnel.php:2386
     1476#, php-format
     1477msgid "Your %1$s phone verification code is: %2$s. Valid for %3$d minutes."
    14161478msgstr ""
    14171479
    14181480#. translators: %s: masked phone number
    1419 #: smstunnel.php:2309
    1420 #, php-format
    1421 msgid "Code already sent to %s"
    1422 msgstr ""
    1423 
    1424 #: smstunnel.php:2319
    1425 #: smstunnel.php:2404
    1426 #: smstunnel.php:2407
    1427 msgid "Too many requests, please try again later."
    1428 msgstr ""
    1429 
    1430 #. translators: %s: masked phone number
    1431 #: smstunnel.php:2345
    1432 #, php-format
    1433 msgid "Code sent to %s"
    1434 msgstr ""
    1435 
    1436 #: smstunnel.php:2350
    1437 msgid "Failed to send code."
    1438 msgstr ""
    1439 
    1440 #: smstunnel.php:2364
    1441 msgid "SMS unavailable - 2FA bypassed"
    1442 msgstr ""
    1443 
    1444 #: smstunnel.php:2384
    1445 #: smstunnel.php:2454
    1446 #: smstunnel.php:2512
    1447 msgid "Session expired. Please try logging in again."
    1448 msgstr ""
    1449 
    1450 #: smstunnel.php:2390
    1451 msgid "Invalid phone number format. Please use international format (e.g., +40712345678)."
    1452 msgstr ""
    1453 
    1454 #: smstunnel.php:2395
    1455 msgid "Premium-rate numbers are not allowed. Please use a standard mobile number."
    1456 msgstr ""
    1457 
    1458 #. translators: %1$s: site name, %2$s: verification code, %3$d: minutes
    1459 #: smstunnel.php:2423
    1460 #, php-format
    1461 msgid "Your %1$s phone verification code is: %2$s. Valid for %3$d minutes."
    1462 msgstr ""
    1463 
    1464 #. translators: %s: masked phone number
    1465 #: smstunnel.php:2435
     1481#: smstunnel.php:2398
    14661482#, php-format
    14671483msgid "Verification code sent to %s"
    14681484msgstr ""
    14691485
    1470 #: smstunnel.php:2438
     1486#: smstunnel.php:2401
    14711487msgid "Failed to send verification code."
    14721488msgstr ""
    14731489
    1474 #: smstunnel.php:2462
     1490#: smstunnel.php:2425
    14751491msgid "Verification code expired. Please request a new code."
    14761492msgstr ""
    14771493
    1478 #: smstunnel.php:2473
     1494#: smstunnel.php:2436
    14791495msgid "Too many attempts. Please request a new code."
    14801496msgstr ""
    14811497
    1482 #: smstunnel.php:2478
     1498#: smstunnel.php:2441
    14831499msgid "Invalid verification code."
    14841500msgstr ""
    14851501
    1486 #: smstunnel.php:2496
     1502#: smstunnel.php:2459
    14871503msgid "Phone verified successfully! You can now log in."
    14881504msgstr ""
    14891505
    1490 #: smstunnel.php:2522
     1506#: smstunnel.php:2485
    14911507msgid "Phone setup skipped. Please add your phone number from your profile."
    14921508msgstr ""
    14931509
    1494 #: smstunnel.php:2725
     1510#: smstunnel.php:2688
    14951511msgid "<strong>Error:</strong> Verification code expired. Please try again."
    14961512msgstr ""
    14971513
    1498 #: smstunnel.php:2736
     1514#: smstunnel.php:2699
    14991515msgid "<strong>Error:</strong> Too many attempts. Please request a new code."
    15001516msgstr ""
    15011517
    1502 #: smstunnel.php:2741
     1518#: smstunnel.php:2704
    15031519msgid "<strong>Error:</strong> Invalid verification code."
    15041520msgstr ""
    15051521
    1506 #: smstunnel.php:2761
     1522#: smstunnel.php:2724
    15071523msgid "<strong>2FA Required:</strong> Please enter the verification code sent to your phone."
    15081524msgstr ""
    15091525
    1510 #: smstunnel.php:2776
     1526#: smstunnel.php:2739
    15111527msgid "<strong>Error:</strong> No phone number configured. Please reload and complete phone setup."
    15121528msgstr ""
    15131529
    1514 #: smstunnel.php:2781
     1530#: smstunnel.php:2744
    15151531msgid "<strong>Error:</strong> Invalid phone number format. Please update your phone in your profile."
    15161532msgstr ""
    15171533
    15181534#. translators: %1$s: masked phone number, %2$s: code prefix
    1519 #: smstunnel.php:2809
     1535#: smstunnel.php:2772
    15201536#, php-format
    15211537msgid "<strong>2FA Required:</strong> Verification code sent to %1$s. Enter code with prefix <strong>%2$s</strong>."
    … …  
    15231539
    15241540#. translators: %s: error message
    1525 #: smstunnel.php:2822
     1541#: smstunnel.php:2785
    15261542#, php-format
    15271543msgid "<strong>Error:</strong> Failed to send verification code: %s"
    15281544msgstr ""
    15291545
    1530 #: smstunnel.php:2832
     1546#: smstunnel.php:2795
    15311547msgid "SMSTunnel 2FA"
    15321548msgstr ""
    15331549
    1534 #: smstunnel.php:2841
     1550#: smstunnel.php:2804
    15351551msgid "Phone number in international format (e.g., +40712345678). Used for 2FA verification."
    15361552msgstr ""
  • smstunnel/tags/1.0.19/readme.txt

    r3793052 r3808151  
    55Tested up to: 7.1
    66Requires PHP: 7.4
    7 Stable tag: 1.0.18
     7Stable tag: 1.0.19
    88License: GPLv2 or later
    99License URI: https://www.gnu.org/licenses/gpl-2.0.html
    … …  
    4343* Form Notifications - Built-in texts for Fluent Forms and Forminator: to you, and to the person who filled in the form
    4444* Two-Factor Authentication - Optional SMS codes to secure WordPress logins
    45 * End-to-End Encryption - Optional; messages are encrypted for your phone (RSA keys) before they leave your site
     45* End-to-End Encryption - Optional; texts of any length, in any alphabet, are encrypted for your phone before they leave your site
    4646
    4747== Installation ==
    … …  
    9898
    9999== Changelog ==
     100
     101= 1.0.19 =
     102* Changed: Encrypted texts use the hybrid format (AES-256-GCM with RSA-OAEP) whenever your phone reads it (SMSTunnel app 1.0.8 or newer), so they go out at any length and in any alphabet: Cyrillic, Arabic, Chinese, emoji, letters with diacritics. The "Use hybrid encryption (v2)" setting is gone: it was off unless you turned it on, and without it a text over about 200 Latin letters, or about 35 in other alphabets, could not be encrypted.
     103* Improved: For a phone paired with an older app, which reads only RSA, encrypted texts in other alphabets fit two to three times as many letters as before (about 100 Cyrillic or Arabic ones). A text that is still too long gets a clear error: update the app on the phone and pair it again. Settings shows which format your paired phone uses.
    100104
    101105= 1.0.18 =
    … …  
    209213== Upgrade Notice ==
    210214
     215= 1.0.19 =
     216Encrypted texts of any length, in any alphabet, now go out whenever your phone's SMSTunnel app is 1.0.8 or newer.
     217
    211218= 1.0.18 =
    212219Numbers written with (0) after the country code, such as +49 (0) 170 1234567, now get their texts at the right number.
  • smstunnel/tags/1.0.19/smstunnel.php

    r3793052 r3808151  
    44 * Plugin URI: https://smstunnel.io/integrations/smstunnel/
    55 * Description: Send texts from your WordPress site through your own Android phone and number - linked by QR code, revocable anytime. Texts for Fluent Forms and Forminator submissions built in. Optional SMS two-factor authentication for WordPress logins. Optional end-to-end encryption.
    6  * Version: 1.0.18
     6 * Version: 1.0.19
    77 * Author: SMSTunnel.io
    88 * Author URI: https://smstunnel.io
    … …  
    2323
    2424// Define plugin constants
    25 define('SMSTUNNEL_VERSION', '1.0.18');
     25define('SMSTUNNEL_VERSION', '1.0.19');
    2626define('SMSTUNNEL_PLUGIN_DIR', plugin_dir_path(__FILE__));
    2727define('SMSTUNNEL_PLUGIN_URL', plugin_dir_url(__FILE__));
    … …  
    312312        register_setting('smstunnel_settings', 'smstunnel_device_public_key', array('sanitize_callback' => 'sanitize_text_field'));
    313313        register_setting('smstunnel_settings', 'smstunnel_e2e_device_id', array('sanitize_callback' => 'sanitize_text_field'));
    314         register_setting('smstunnel_settings', 'smstunnel_e2e_hybrid', array(
    315             'type'              => 'string',
    316             'sanitize_callback' => array($this, 'sanitize_yes_no'),
    317             'default'           => 'no',
    318         ));
     314        // Since 1.0.19 a phone that reads the hybrid format always gets it: the "Use hybrid encryption (v2)"
     315        // setting (option smstunnel_e2e_hybrid) is gone. uninstall.php still deletes the stored option.
    319316
    320317        // API Section
    … …  
    453450            'smstunnel_e2e_section'
    454451        );
    455 
    456         add_settings_field(
    457             'smstunnel_e2e_hybrid',
    458             __('Hybrid Encryption (v2)', 'smstunnel'),
    459             array($this, 'e2e_hybrid_field_callback'),
    460             'smstunnel_settings',
    461             'smstunnel_e2e_section'
    462         );
    463     }
    464 
    465     /**
    466      * Sanitize a yes/no toggle value, coercing anything else to 'no'.
    467      *
    468      * @param mixed $value Raw submitted value.
    469      * @return string 'yes' or 'no'.
    470      */
    471     public function sanitize_yes_no($value) {
    472         return ($value === 'yes' || $value === '1' || $value === 'on' || $value === true) ? 'yes' : 'no';
    473452    }
    474453
    … …  
    798777            $device_name = $e2e_key['device_name'] ?: __('Phone', 'smstunnel');
    799778            $paired_date = !empty($e2e_key['paired_at']) ? date_i18n(get_option('date_format') . ' ' . get_option('time_format'), strtotime($e2e_key['paired_at'])) : '-';
     779            // The format the phone reported when it was paired: 2 = hybrid (any length), else RSA only (245 bytes).
     780            $hybrid = isset($e2e_key['e2e_version']) && (int) $e2e_key['e2e_version'] >= 2;
    800781
    801782            echo '<div style="padding: 15px; background: #e7f5e7; border: 1px solid #46b450; border-radius: 8px; max-width: 450px;">';
    … …  
    808789            echo '<tr><td style="color: #666; padding: 4px 0;">' . esc_html__('Fingerprint:', 'smstunnel') . '</td><td style="padding: 4px 0;"><code style="font-size: 11px; background: #f5f5f5; padding: 2px 6px; border-radius: 3px;">' . esc_html($fingerprint) . '</code></td></tr>';
    809790            echo '<tr><td style="color: #666; padding: 4px 0;">' . esc_html__('Paired:', 'smstunnel') . '</td><td style="padding: 4px 0;">' . esc_html($paired_date) . '</td></tr>';
     791            echo '<tr><td style="color: #666; padding: 4px 0;">' . esc_html__('Format:', 'smstunnel') . '</td><td style="padding: 4px 0;">' . ($hybrid ? esc_html__('Hybrid: texts of any length, in any alphabet', 'smstunnel') : esc_html__('RSA only: short texts', 'smstunnel')) . '</td></tr>';
    810792            echo '</table>';
     793            if (!$hybrid) {
     794                echo '<p style="margin: 12px 0 0 0; font-size: 12px; color: #8a6d3b;">' . esc_html__('Encrypted texts to this phone can be about 200 Latin letters long, or about 100 in other alphabets. To send longer ones, update the SMSTunnel app on your phone, then Remove E2E Pairing and pair again.', 'smstunnel') . '</p>';
     795            }
    811796            echo '<p style="margin: 12px 0 0 0; font-size: 12px; color: #666;">' . esc_html__('All SMS messages are encrypted before leaving WordPress.', 'smstunnel') . '</p>';
    812797            echo '<button type="button" id="smstunnel-remove-e2e" class="button" style="margin-top: 12px; color: #a00;">' . esc_html__('Remove E2E Pairing', 'smstunnel') . '</button>';
    … …  
    826811
    827812        // Note: smstunnelAdmin is provided via wp_localize_script in admin_scripts()
    828     }
    829 
    830     /**
    831      * E2E hybrid encryption (v2) toggle field.
    832      *
    833      * When enabled, and the paired device advertises support (e2e_version >= 2),
    834      * SMS payloads are encrypted with the v2 hybrid scheme (AES-256-GCM for the
    835      * message + RSA-OAEP for the AES key). This removes the ~245 byte RSA size
    836      * limit of the legacy v1 (PKCS#1 v1.5) scheme. Default OFF for safety.
    837      */
    838     public function e2e_hybrid_field_callback() {
    839         $enabled = get_option('smstunnel_e2e_hybrid', 'no') === 'yes';
    840         ?>
    841         <input type="hidden" name="smstunnel_e2e_hybrid" value="no" />
    842         <label style="display: flex; align-items: center; gap: 8px; max-width: 450px;">
    843             <input type="checkbox" name="smstunnel_e2e_hybrid" value="yes" <?php checked($enabled); ?> />
    844             <span><?php esc_html_e('Use hybrid encryption (v2)', 'smstunnel'); ?></span>
    845         </label>
    846         <p class="description" style="max-width: 450px; margin-top: 8px;">
    847             <?php esc_html_e('Encrypts long messages reliably using AES-256-GCM + RSA-OAEP instead of plain RSA. Requires an up-to-date SMSTunnel app that supports v2 pairing. Leave OFF until your phone app is updated and you have tested a message end-to-end. When OFF, the original (v1) encryption is used.', 'smstunnel'); ?>
    848         </p>
    849         <?php
    850813    }
    851814
  • smstunnel/tags/1.0.19/uninstall.php

    r3780179 r3808151  
    4747    'smstunnel_e2e_key',
    4848    'smstunnel_e2e_device_id',
    49     'smstunnel_e2e_hybrid',
     49    'smstunnel_e2e_hybrid', // the "Use hybrid encryption (v2)" setting, gone in 1.0.19; sites may still have it stored
    5050    'smstunnel_device_public_key',
    5151    'smstunnel_server_public_key',
  • smstunnel/trunk/includes/class-smstunnel-api.php

    r3780347 r3808151  
    121121     */
    122122    private function send_sms_encrypted($to, $message, $public_key, $device_id, $is2FA = false, $e2e_key = array()) {
    123         // Create payload to encrypt
    124         $payload = wp_json_encode(array(
    125             'to' => $to,
    126             'message' => $message
    127         ));
     123        // The number and the words, as the phone reads them. Letters outside ASCII stay UTF-8 (2 to 4 bytes each)
     124        // instead of \uXXXX escapes (6 to 12 bytes): the phone reads either, and the old format has little room.
     125        $json_flags = JSON_UNESCAPED_UNICODE | JSON_UNESCAPED_SLASHES;
     126        $payload    = wp_json_encode(array(
     127            'to'      => $to,
     128            'message' => $message,
     129        ), $json_flags);
     130        if (false === $payload) {
     131            return array(
     132                'success' => false,
     133                'error'   => __('Encryption failed: the text could not be prepared.', 'smstunnel')
     134            );
     135        }
    128136
    129137        // Build PEM from the stored base64 SPKI public key.
    … …  
    140148        }
    141149
    142         // ---- Capability negotiation / gating (v1 vs v2 hybrid) -------------
    143         // v2 hybrid is used ONLY when BOTH are true:
    144         //   1. The site operator has explicitly enabled it (smstunnel_e2e_hybrid == 'yes').
    145         //   2. The paired device advertises support for v2 (e2e_version >= 2).
    146         // Otherwise we fall through to the unchanged v1 (PKCS#1 v1.5) path so
    147         // existing devices keep working exactly as before.
     150        // ---- Which format the phone reads (v1 or v2 hybrid) -----------------
     151        // Recorded when the phone was paired: 2 = the hybrid format (AES-256-GCM + RSA-OAEP, SMSTunnel app
     152        // 1.0.8 or newer), with no length limit; 1 = RSA alone. A phone that reads the hybrid format always
     153        // gets it. Up to 1.0.18 it also needed the "Use hybrid encryption (v2)" setting, off unless an
     154        // administrator turned it on, so texts in other alphabets were often too long. A phone paired as v1
     155        // keeps v1 (PKCS#1 v1.5), exactly as before.
    148156        $device_e2e_version = isset($e2e_key['e2e_version']) ? (int) $e2e_key['e2e_version'] : 1;
    149         $hybrid_enabled     = get_option('smstunnel_e2e_hybrid', 'no') === 'yes';
    150         $use_v2             = $hybrid_enabled && $device_e2e_version >= 2;
    151157
    152158        $encrypted_payload = '';
    153159
    154         if ($use_v2) {
     160        if ($device_e2e_version >= 2) {
    155161            // Padded so the packet's size doesn't give away how long the text is. The phone ignores the
    156162            // extra field. v1 can't take it: RSA alone has room for about 245 bytes.
    … …  
    159165                'message' => $message,
    160166                'pad'     => str_repeat(' ', 256 - (strlen($payload) % 256)),
    161             ));
    162             $v2 = $this->encrypt_payload_v2($padded, $key_resource);
     167            ), $json_flags);
     168            $v2 = (false === $padded) ? false : $this->encrypt_payload_v2($padded, $key_resource);
    163169            if ($v2 !== false) {
    164170                $encrypted_payload = $v2;
    165171            }
    166172            // If v2 fails for any reason (cipher unavailable, OAEP error), fall
    167             // back to v1 below so the message still goes out.
     173            // back to v1 below so a text that fits still goes out.
    168174        }
    169175
    170176        if ($encrypted_payload === '') {
    171             // ---- v1 (legacy) path -- UNCHANGED behaviour ------------------
     177            // ---- v1 (legacy): RSA PKCS#1 v1.5 directly over the payload --------
     178            // RSA-2048 carries 245 bytes: about 200 Latin letters after the number, or about 100 Cyrillic,
     179            // Arabic or Greek ones, 65 Chinese ones or 50 emoji. Say so plainly instead of OpenSSL's error.
     180            $key_details = openssl_pkey_get_details($key_resource);
     181            $max_bytes   = (is_array($key_details) && !empty($key_details['bits'])) ? ((int) $key_details['bits'] / 8) - 11 : 245;
     182            if (strlen($payload) > $max_bytes) {
     183                return array(
     184                    'success' => false,
     185                    'error'   => ($device_e2e_version >= 2)
     186                        ? __('Encryption failed: this text is too long for RSA alone, and this site could not use AES-256-GCM encryption. Ask your host to enable OpenSSL with AES-256-GCM.', 'smstunnel')
     187                        : __('This text is too long for the encryption your phone uses. Update the SMSTunnel app on your phone, then pair it again: SMSTunnel > Settings > End-to-End Encryption, Remove E2E Pairing, then Start E2E Pairing.', 'smstunnel')
     188                );
     189            }
    172190            $encrypted = '';
    173191            // RSA encrypt with PKCS1 v1.5 padding (compatible with Flutter encrypt package)
  • smstunnel/trunk/includes/class-smstunnel-quick-setup.php

    r3780347 r3808151  
    203203     * Clears the API key and everything clear_account_state() clears, sets Quick Setup back to its
    204204     * first step and makes a new site token, so a QR code shown before can't complete the setup.
    205      * The site's own settings stay: server URL, language, 2FA, the hybrid encryption choice, form
    206      * texts and the SMS history.
     205     * The site's own settings stay: server URL, language, 2FA, form texts and the SMS history.
    207206     */
    208207    public static function forget_account() {
  • smstunnel/trunk/languages/smstunnel.pot

    r3780347 r3808151  
    33msgid ""
    44msgstr ""
    5 "Project-Id-Version: SMSTunnel 1.0.17\n"
     5"Project-Id-Version: SMSTunnel 1.0.19\n"
    66"Report-Msgid-Bugs-To: https://wordpress.org/support/plugin/smstunnel\n"
    77"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
    … …  
    1010"Content-Type: text/plain; charset=UTF-8\n"
    1111"Content-Transfer-Encoding: 8bit\n"
    12 "POT-Creation-Date: 2026-11-02T16:04:43+00:00\n"
     12"POT-Creation-Date: 2026-11-17T15:21:59+00:00\n"
    1313"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
    1414"X-Generator: WP-CLI 2.12.0\n"
    … …  
    4343
    4444#: includes/class-smstunnel-api.php:55
    45 #: includes/class-smstunnel-api.php:316
    46 #: includes/class-smstunnel-api.php:380
    47 #: includes/class-smstunnel-api.php:433
    48 #: includes/class-smstunnel-api.php:493
    49 #: includes/class-smstunnel-api.php:536
    50 #: includes/class-smstunnel-api.php:590
    51 #: smstunnel.php:1605
    52 #: smstunnel.php:1666
     45#: includes/class-smstunnel-api.php:334
     46#: includes/class-smstunnel-api.php:398
     47#: includes/class-smstunnel-api.php:451
     48#: includes/class-smstunnel-api.php:511
     49#: includes/class-smstunnel-api.php:554
     50#: includes/class-smstunnel-api.php:608
     51#: smstunnel.php:1568
     52#: smstunnel.php:1629
    5353msgid "API key not configured."
    5454msgstr ""
    5555
    5656#: includes/class-smstunnel-api.php:107
    57 #: includes/class-smstunnel-api.php:365
    58 #: includes/class-smstunnel-api.php:419
    59 #: includes/class-smstunnel-quick-setup.php:579
     57#: includes/class-smstunnel-api.php:383
     58#: includes/class-smstunnel-api.php:437
     59#: includes/class-smstunnel-quick-setup.php:578
    6060#: includes/class-smstunnel-rest-api.php:162
    6161#: includes/integrations/class-smstunnel-integrations.php:267
    … …  
    6363msgstr ""
    6464
    65 #: includes/class-smstunnel-api.php:138
     65#: includes/class-smstunnel-api.php:133
     66msgid "Encryption failed: the text could not be prepared."
     67msgstr ""
     68
     69#: includes/class-smstunnel-api.php:146
    6670msgid "Invalid device public key. Please re-scan the QR code."
    6771msgstr ""
    6872
    69 #: includes/class-smstunnel-api.php:177
     73#: includes/class-smstunnel-api.php:186
     74msgid "Encryption failed: this text is too long for RSA alone, and this site could not use AES-256-GCM encryption. Ask your host to enable OpenSSL with AES-256-GCM."
     75msgstr ""
     76
     77#: includes/class-smstunnel-api.php:187
     78msgid "This text is too long for the encryption your phone uses. Update the SMSTunnel app on your phone, then pair it again: SMSTunnel > Settings > End-to-End Encryption, Remove E2E Pairing, then Start E2E Pairing."
     79msgstr ""
     80
     81#: includes/class-smstunnel-api.php:195
    7082msgid "Encryption failed. The message may be too long for RSA encryption."
    7183msgstr ""
    7284
    73 #: includes/class-smstunnel-api.php:221
     85#: includes/class-smstunnel-api.php:239
    7486msgid "Failed to send encrypted SMS"
    7587msgstr ""
    7688
    77 #: includes/class-smstunnel-api.php:355
     89#: includes/class-smstunnel-api.php:373
    7890msgid "Invalid 2FA message format"
    7991msgstr ""
    8092
    81 #: includes/class-smstunnel-api.php:468
    82 #: smstunnel.php:1585
     93#: includes/class-smstunnel-api.php:486
     94#: smstunnel.php:1548
    8395msgid "Invalid API key."
    8496msgstr ""
    8597
    86 #: includes/class-smstunnel-api.php:479
     98#: includes/class-smstunnel-api.php:497
    8799msgid "Connection failed."
    88100msgstr ""
    89101
    90 #: includes/class-smstunnel-api.php:522
     102#: includes/class-smstunnel-api.php:540
    91103msgid "Failed to get usage."
    92104msgstr ""
    93105
    94 #: includes/class-smstunnel-api.php:565
     106#: includes/class-smstunnel-api.php:583
    95107msgid "Failed to get status."
    96108msgstr ""
    97109
    98 #: includes/class-smstunnel-api.php:661
     110#: includes/class-smstunnel-api.php:679
    99111msgid "Failed to get received messages."
    100112msgstr ""
    101113
    102114#. translators: %d: number of seconds to wait before retrying
    103 #: includes/class-smstunnel-api.php:684
     115#: includes/class-smstunnel-api.php:702
    104116#, php-format
    105117msgid "Rate limit reached. Please try again in %d seconds."
    106118msgstr ""
    107119
    108 #: includes/class-smstunnel-api.php:688
    109 #: smstunnel.php:1331
     120#: includes/class-smstunnel-api.php:706
     121#: smstunnel.php:1294
    110122msgid "Rate limit reached. Please wait a moment and try again."
    111123msgstr ""
    … …  
    135147msgstr ""
    136148
    137 #: includes/class-smstunnel-quick-setup.php:240
     149#: includes/class-smstunnel-quick-setup.php:239
    138150#: includes/class-smstunnel-setup-notice.php:525
    139 #: smstunnel.php:1498
    140 #: smstunnel.php:1524
    141 #: smstunnel.php:1557
    142 #: smstunnel.php:1600
    143 #: smstunnel.php:1656
    144 #: smstunnel.php:1742
    145 #: smstunnel.php:1858
    146 #: smstunnel.php:1884
    147 #: smstunnel.php:1952
     151#: smstunnel.php:1461
     152#: smstunnel.php:1487
     153#: smstunnel.php:1520
     154#: smstunnel.php:1563
     155#: smstunnel.php:1619
     156#: smstunnel.php:1705
     157#: smstunnel.php:1821
     158#: smstunnel.php:1847
     159#: smstunnel.php:1915
    148160msgid "Permission denied."
    149161msgstr ""
    150162
    151 #: includes/class-smstunnel-quick-setup.php:348
     163#: includes/class-smstunnel-quick-setup.php:347
    152164msgid "Failed to create pairing token"
    153165msgstr ""
    154166
     167#: includes/class-smstunnel-quick-setup.php:381
    155168#: includes/class-smstunnel-quick-setup.php:382
    156 #: includes/class-smstunnel-quick-setup.php:383
    157169#: includes/class-smstunnel-setup-notice.php:457
    158 #: smstunnel.php:621
    159 #: smstunnel.php:1302
    160 #: smstunnel.php:1314
     170#: smstunnel.php:600
     171#: smstunnel.php:1265
     172#: smstunnel.php:1277
    161173msgid "Quick Setup"
    162174msgstr ""
    163175
     176#: includes/class-smstunnel-quick-setup.php:442
     177#: includes/class-smstunnel-quick-setup.php:522
     178msgid "Waiting for QR scan..."
     179msgstr ""
     180
    164181#: includes/class-smstunnel-quick-setup.php:443
    165 #: includes/class-smstunnel-quick-setup.php:523
    166 msgid "Waiting for QR scan..."
     182msgid "Setup completed!"
    167183msgstr ""
    168184
    169185#: includes/class-smstunnel-quick-setup.php:444
    170 msgid "Setup completed!"
     186msgid "Setup failed"
    171187msgstr ""
    172188
    173189#: includes/class-smstunnel-quick-setup.php:445
    174 msgid "Setup failed"
     190msgid "Connected to"
    175191msgstr ""
    176192
    177193#: includes/class-smstunnel-quick-setup.php:446
    178 msgid "Connected to"
     194msgid "Could not generate QR code. Please check your internet connection."
    179195msgstr ""
    180196
    181197#: includes/class-smstunnel-quick-setup.php:447
    182 msgid "Could not generate QR code. Please check your internet connection."
     198msgid "Generate new QR code"
    183199msgstr ""
    184200
    185201#: includes/class-smstunnel-quick-setup.php:448
    186 msgid "Generate new QR code"
    187 msgstr ""
    188 
    189 #: includes/class-smstunnel-quick-setup.php:449
    190202msgid "Generating..."
    191203msgstr ""
    192204
    193 #: includes/class-smstunnel-quick-setup.php:463
     205#: includes/class-smstunnel-quick-setup.php:462
    194206msgid "SMSTunnel Quick Setup"
    195207msgstr ""
    196208
    197 #: includes/class-smstunnel-quick-setup.php:471
     209#: includes/class-smstunnel-quick-setup.php:470
    198210msgid "Setup Complete!"
    199211msgstr ""
    200212
    201213#. translators: %s: device name
    202 #: includes/class-smstunnel-quick-setup.php:476
     214#: includes/class-smstunnel-quick-setup.php:475
    203215#, php-format
    204216msgid "Connected device: %s"
    205217msgstr ""
    206218
    207 #: includes/class-smstunnel-quick-setup.php:479
     219#: includes/class-smstunnel-quick-setup.php:478
    208220msgid "Your site is connected to SMSTunnel."
    209221msgstr ""
    210222
    211 #: includes/class-smstunnel-quick-setup.php:484
     223#: includes/class-smstunnel-quick-setup.php:483
    212224#: smstunnel.php:254
    213225#: smstunnel.php:255
    214 #: smstunnel.php:892
    215 #: smstunnel.php:915
     226#: smstunnel.php:855
     227#: smstunnel.php:878
    216228msgid "Send SMS"
    217229msgstr ""
    218230
    219 #: includes/class-smstunnel-quick-setup.php:487
     231#: includes/class-smstunnel-quick-setup.php:486
    220232#: includes/class-smstunnel-setup-notice.php:465
    221233#: includes/class-smstunnel-setup-notice.php:474
    222234#: smstunnel.php:245
    223235#: smstunnel.php:246
    224 #: smstunnel.php:1303
     236#: smstunnel.php:1266
    225237msgid "Settings"
    226238msgstr ""
    227239
    228 #: includes/class-smstunnel-quick-setup.php:492
     240#: includes/class-smstunnel-quick-setup.php:491
    229241msgid "Reset and setup again"
    230242msgstr ""
    231243
    232 #: includes/class-smstunnel-quick-setup.php:501
     244#: includes/class-smstunnel-quick-setup.php:500
    233245msgid "Setup in 3 simple steps:"
    234246msgstr ""
    235247
    236 #: includes/class-smstunnel-quick-setup.php:506
     248#: includes/class-smstunnel-quick-setup.php:505
    237249msgid "Download the SMSTunnel app"
    238250msgstr ""
    239251
    240 #: includes/class-smstunnel-quick-setup.php:516
     252#: includes/class-smstunnel-quick-setup.php:515
    241253msgid "Scan this QR code"
    242254msgstr ""
    243255
    244 #: includes/class-smstunnel-quick-setup.php:519
     256#: includes/class-smstunnel-quick-setup.php:518
    245257msgid "Open the SMSTunnel app and scan this code"
    246258msgstr ""
    247259
     260#: includes/class-smstunnel-quick-setup.php:530
     261msgid "Done! Start sending SMS"
     262msgstr ""
     263
    248264#: includes/class-smstunnel-quick-setup.php:531
    249 msgid "Done! Start sending SMS"
    250 msgstr ""
    251 
    252 #: includes/class-smstunnel-quick-setup.php:532
    253265msgid "Once connected, you can send SMS directly from WordPress."
    254266msgstr ""
    255267
    256 #: includes/class-smstunnel-quick-setup.php:539
     268#: includes/class-smstunnel-quick-setup.php:538
    257269msgid "Already have an SMSTunnel account?"
    258270msgstr ""
    259271
    260 #: includes/class-smstunnel-quick-setup.php:541
     272#: includes/class-smstunnel-quick-setup.php:540
    261273msgid "Advanced Setup"
    262274msgstr ""
    … …  
    267279
    268280#: includes/class-smstunnel-rest-api.php:176
    269 #: smstunnel.php:1563
     281#: smstunnel.php:1526
    270282msgid "API key is required."
    271283msgstr ""
    … …  
    324336#. translators: %s: technical error details, e.g. "cURL error 28: Operation timed out"
    325337#: includes/class-smstunnel-setup-notice.php:317
    326 #: smstunnel.php:1351
     338#: smstunnel.php:1314
    327339#, php-format
    328340msgid "Details: %s"
    … …  
    432444#: includes/integrations/fluent-forms/class-smstunnel-fluent-forms-feed.php:161
    433445#: includes/integrations/forminator/class-smstunnel-forminator-form-settings.php:251
    434 #: smstunnel.php:906
    435 #: smstunnel.php:1030
    436 #: smstunnel.php:1165
     446#: smstunnel.php:869
     447#: smstunnel.php:993
     448#: smstunnel.php:1128
    437449msgid "Message"
    438450msgstr ""
    … …  
    455467
    456468#: includes/integrations/fluent-forms/class-smstunnel-fluent-forms-feed.php:186
    457 #: smstunnel.php:1031
     469#: smstunnel.php:994
    458470msgid "Status"
    459471msgstr ""
    … …  
    649661#: smstunnel.php:263
    650662#: smstunnel.php:264
    651 #: smstunnel.php:996
     663#: smstunnel.php:959
    652664msgid "SMS History"
    653665msgstr ""
    … …  
    663675msgstr ""
    664676
    665 #: smstunnel.php:323
     677#: smstunnel.php:320
    666678msgid "API Configuration"
    667679msgstr ""
    668680
    669 #: smstunnel.php:330
     681#: smstunnel.php:327
    670682msgid "Server URL"
    671683msgstr ""
    672684
    673 #: smstunnel.php:338
     685#: smstunnel.php:335
    674686msgid "API Key"
    675687msgstr ""
    676688
    677 #: smstunnel.php:346
     689#: smstunnel.php:343
    678690msgid "Device ID"
    679691msgstr ""
    680692
    681 #: smstunnel.php:355
     693#: smstunnel.php:352
    682694msgid "General Settings"
    683695msgstr ""
    684696
    685 #: smstunnel.php:362
     697#: smstunnel.php:359
    686698msgid "Language"
    687699msgstr ""
    688700
    689 #: smstunnel.php:371
     701#: smstunnel.php:368
    690702msgid "Two-Factor Authentication (2FA)"
    691703msgstr ""
    692704
    693 #: smstunnel.php:378
     705#: smstunnel.php:375
    694706msgid "WordPress Login 2FA"
    695707msgstr ""
    696708
    697 #: smstunnel.php:386
     709#: smstunnel.php:383
    698710msgid "Require 2FA for roles"
    699711msgstr ""
    700712
    701 #: smstunnel.php:394
     713#: smstunnel.php:391
    702714msgid "Code expiry (minutes)"
    703715msgstr ""
    704716
    705 #: smstunnel.php:402
     717#: smstunnel.php:399
    706718msgid "Code length"
    707719msgstr ""
    708720
    709 #: smstunnel.php:410
     721#: smstunnel.php:407
    710722msgid "2FA Message Template"
    711723msgstr ""
    712724
    713 #: smstunnel.php:418
     725#: smstunnel.php:415
    714726msgid "Server Fallback"
    715727msgstr ""
    716728
    717 #: smstunnel.php:426
     729#: smstunnel.php:423
    718730msgid "Remember Device"
    719731msgstr ""
    720732
    721 #: smstunnel.php:434
     733#: smstunnel.php:431
    722734msgid "Remember Duration (days)"
    723735msgstr ""
    724736
    725 #: smstunnel.php:443
     737#: smstunnel.php:440
    726738msgid "End-to-End Encryption"
    727739msgstr ""
    728740
    729 #: smstunnel.php:450
     741#: smstunnel.php:447
    730742msgid "Device Public Key"
    731743msgstr ""
    732744
    733 #: smstunnel.php:458
    734 msgid "Hybrid Encryption (v2)"
    735 msgstr ""
    736 
    737745#. translators: %s: link to the Apps page of the SMSTunnel dashboard
    738 #: smstunnel.php:482
     746#: smstunnel.php:461
    739747#, php-format
    740748msgid "Configure your SMSTunnel API credentials. Get your API key from %s"
    741749msgstr ""
    742750
    743 #: smstunnel.php:495
     751#: smstunnel.php:474
    744752msgid "API endpoint URL: https://smstunnel.io/api/v1"
    745753msgstr ""
    746754
     755#: smstunnel.php:522
     756#: smstunnel.php:788
     757#: smstunnel.php:1414
     758msgid "Device:"
     759msgstr ""
     760
     761#: smstunnel.php:522
     762#: smstunnel.php:777
     763#: smstunnel.php:992
     764#: smstunnel.php:1673
     765msgid "Phone"
     766msgstr ""
     767
     768#: smstunnel.php:524
     769msgid "With an API key from your SMSTunnel dashboard"
     770msgstr ""
     771
     772#: smstunnel.php:532
     773msgid "API Key:"
     774msgstr ""
     775
     776#: smstunnel.php:539
     777msgid "Reconnect"
     778msgstr ""
     779
    747780#: smstunnel.php:543
    748 #: smstunnel.php:807
    749 #: smstunnel.php:1451
    750 msgid "Device:"
    751 msgstr ""
    752 
    753 #: smstunnel.php:543
    754 #: smstunnel.php:798
    755 #: smstunnel.php:1029
    756 #: smstunnel.php:1710
    757 msgid "Phone"
    758 msgstr ""
    759 
    760 #: smstunnel.php:545
    761 msgid "With an API key from your SMSTunnel dashboard"
    762 msgstr ""
    763 
    764 #: smstunnel.php:553
    765 msgid "API Key:"
     781msgid "Are you sure you want to disconnect?"
     782msgstr ""
     783
     784#: smstunnel.php:544
     785msgid "Disconnect"
    766786msgstr ""
    767787
    768788#: smstunnel.php:560
    769 msgid "Reconnect"
    770 msgstr ""
    771 
    772 #: smstunnel.php:564
    773 msgid "Are you sure you want to disconnect?"
    774 msgstr ""
    775 
    776 #: smstunnel.php:565
    777 msgid "Disconnect"
    778 msgstr ""
    779 
    780 #: smstunnel.php:581
    781789msgid "Connect with API Key"
    782790msgstr ""
    783791
    784 #: smstunnel.php:584
     792#: smstunnel.php:563
    785793msgid "Connect"
    786794msgstr ""
    787795
    788796#. translators: %s: link to the Apps page of the SMSTunnel dashboard
     797#: smstunnel.php:568
     798#, php-format
     799msgid "Get your API key in %s: Apps, Add an app."
     800msgstr ""
     801
     802#: smstunnel.php:569
     803msgid "your SMSTunnel dashboard"
     804msgstr ""
     805
     806#: smstunnel.php:577
     807msgid "Connect with"
     808msgstr ""
     809
     810#: smstunnel.php:583
     811msgid "Google"
     812msgstr ""
     813
    789814#: smstunnel.php:589
    790 #, php-format
    791 msgid "Get your API key in %s: Apps, Add an app."
    792 msgstr ""
    793 
    794 #: smstunnel.php:590
    795 msgid "your SMSTunnel dashboard"
    796 msgstr ""
    797 
    798 #: smstunnel.php:598
    799 msgid "Connect with"
    800 msgstr ""
    801 
    802 #: smstunnel.php:604
    803 msgid "Google"
     815msgid "Facebook"
     816msgstr ""
     817
     818#: smstunnel.php:597
     819msgid "Scan QR Code"
     820msgstr ""
     821
     822#: smstunnel.php:602
     823msgid "Scan with SMSTunnel app"
     824msgstr ""
     825
     826#: smstunnel.php:608
     827msgid "Connect with Email"
    804828msgstr ""
    805829
    806830#: smstunnel.php:610
    807 msgid "Facebook"
    808 msgstr ""
    809 
    810 #: smstunnel.php:618
    811 msgid "Scan QR Code"
    812 msgstr ""
    813 
    814 #: smstunnel.php:623
    815 msgid "Scan with SMSTunnel app"
    816 msgstr ""
    817 
    818 #: smstunnel.php:629
    819 msgid "Connect with Email"
    820 msgstr ""
    821 
    822 #: smstunnel.php:631
    823831msgid "Email"
    824832msgstr ""
    825833
     834#: smstunnel.php:611
     835msgid "Password"
     836msgstr ""
     837
     838#: smstunnel.php:612
     839msgid "Login"
     840msgstr ""
     841
     842#. translators: %s: registration URL
     843#: smstunnel.php:615
     844#, php-format
     845msgid "Don't have an account? <a href=\"%s\" target=\"_blank\">Register</a>"
     846msgstr ""
     847
    826848#: smstunnel.php:632
    827 msgid "Password"
    828 msgstr ""
    829 
    830 #: smstunnel.php:633
    831 msgid "Login"
    832 msgstr ""
    833 
    834 #. translators: %s: registration URL
    835 #: smstunnel.php:636
    836 #, php-format
    837 msgid "Don't have an account? <a href=\"%s\" target=\"_blank\">Register</a>"
    838 msgstr ""
    839 
    840 #: smstunnel.php:653
    841849msgid "Optional. Specify a device ID to use for sending SMS. Leave empty to use any available device."
    842850msgstr ""
    843851
    844 #: smstunnel.php:660
     852#: smstunnel.php:639
    845853msgid "General plugin settings."
    846854msgstr ""
    847855
    848856#. translators: %s: site locale code
    849 #: smstunnel.php:672
     857#: smstunnel.php:651
    850858#, php-format
    851859msgid "Site default (%s)"
    852860msgstr ""
    853861
    854 #: smstunnel.php:683
     862#: smstunnel.php:662
    855863msgid "Select the language for SMS messages. Default uses the site language."
    856864msgstr ""
    857865
    858 #: smstunnel.php:690
     866#: smstunnel.php:669
    859867msgid "Add SMS-based two-factor authentication. Users need a phone number in their profile."
    860868msgstr ""
    861869
    862 #: smstunnel.php:699
     870#: smstunnel.php:678
    863871msgid "Enable SMS 2FA for WordPress login (wp-login.php)"
    864872msgstr ""
    865873
     874#: smstunnel.php:687
     875msgid "Allow login without 2FA when SMS server is unavailable"
     876msgstr ""
     877
     878#: smstunnel.php:688
     879msgid "Security note: When enabled, users can login without 2FA if the SMS server cannot be reached. This prevents lockouts but reduces security."
     880msgstr ""
     881
     882#: smstunnel.php:697
     883msgid "Allow users to remember this device"
     884msgstr ""
     885
     886#: smstunnel.php:698
     887msgid "Users can skip 2FA on trusted devices. Device trust is based on browser and IP address."
     888msgstr ""
     889
     890#: smstunnel.php:707
     891msgid "days"
     892msgstr ""
     893
    866894#: smstunnel.php:708
    867 msgid "Allow login without 2FA when SMS server is unavailable"
    868 msgstr ""
    869 
    870 #: smstunnel.php:709
    871 msgid "Security note: When enabled, users can login without 2FA if the SMS server cannot be reached. This prevents lockouts but reduces security."
    872 msgstr ""
    873 
    874 #: smstunnel.php:718
    875 msgid "Allow users to remember this device"
    876 msgstr ""
    877 
    878 #: smstunnel.php:719
    879 msgid "Users can skip 2FA on trusted devices. Device trust is based on browser and IP address."
    880 msgstr ""
    881 
    882 #: smstunnel.php:728
    883 msgid "days"
    884 msgstr ""
    885 
    886 #: smstunnel.php:729
    887895msgid "How long a device stays trusted before requiring 2FA again."
    888896msgstr ""
    889897
    890 #: smstunnel.php:746
     898#: smstunnel.php:725
    891899msgid "Select which user roles require 2FA."
    892900msgstr ""
    893901
    894 #: smstunnel.php:755
     902#: smstunnel.php:734
    895903msgid "minutes"
    896904msgstr ""
    897905
    898 #: smstunnel.php:766
     906#: smstunnel.php:745
    899907msgid "digits"
    900908msgstr ""
    901909
    902 #: smstunnel.php:775
     910#: smstunnel.php:754
     911#: smstunnel.php:2290
     912#: smstunnel.php:2755
     913msgid "Your {site_name} verification code is: {code}. Valid for {expiry} minutes."
     914msgstr ""
     915
     916#: smstunnel.php:757
     917msgid "Placeholders: {code}, {site_name}, {expiry}"
     918msgstr ""
     919
     920#: smstunnel.php:764
     921msgid "Enable end-to-end encryption so only your phone can read the words of your texts. The server cannot decrypt them. The number stays visible to it, so your Messages page can show who each text went to."
     922msgstr ""
     923
     924#: smstunnel.php:785
     925msgid "E2E Encryption Active"
     926msgstr ""
     927
     928#: smstunnel.php:789
     929#: smstunnel.php:1415
     930msgid "Fingerprint:"
     931msgstr ""
     932
     933#: smstunnel.php:790
     934msgid "Paired:"
     935msgstr ""
     936
     937#: smstunnel.php:791
     938msgid "Format:"
     939msgstr ""
     940
     941#: smstunnel.php:791
     942msgid "Hybrid: texts of any length, in any alphabet"
     943msgstr ""
     944
     945#: smstunnel.php:791
     946msgid "RSA only: short texts"
     947msgstr ""
     948
     949#: smstunnel.php:794
     950msgid "Encrypted texts to this phone can be about 200 Latin letters long, or about 100 in other alphabets. To send longer ones, update the SMSTunnel app on your phone, then Remove E2E Pairing and pair again."
     951msgstr ""
     952
     953#: smstunnel.php:796
     954msgid "All SMS messages are encrypted before leaving WordPress."
     955msgstr ""
     956
     957#: smstunnel.php:797
     958#: smstunnel.php:1420
     959msgid "Remove E2E Pairing"
     960msgstr ""
     961
     962#: smstunnel.php:802
     963msgid "Pair your phone to enable end-to-end encryption. Messages will be encrypted before leaving WordPress."
     964msgstr ""
     965
     966#: smstunnel.php:805
     967#: smstunnel.php:1412
     968msgid "Start E2E Pairing"
     969msgstr ""
     970
     971#: smstunnel.php:832
     972msgid "Test Connection"
     973msgstr ""
     974
     975#: smstunnel.php:835
     976msgid "Test API Connection"
     977msgstr ""
     978
     979#: smstunnel.php:840
     980msgid "Save Settings"
     981msgstr ""
     982
     983#: smstunnel.php:858
     984msgid "Send a Test SMS"
     985msgstr ""
     986
     987#: smstunnel.php:862
     988#: smstunnel.php:2055
     989#: smstunnel.php:2798
     990msgid "Phone Number"
     991msgstr ""
     992
     993#: smstunnel.php:865
     994msgid "Use E.164 format (e.g., +40712345678)"
     995msgstr ""
     996
     997#: smstunnel.php:871
     998msgid "Enter your message..."
     999msgstr ""
     1000
     1001#: smstunnel.php:900
     1002#: smstunnel.php:1468
     1003msgid "Phone and message are required."
     1004msgstr ""
     1005
     1006#: smstunnel.php:901
     1007#: smstunnel.php:2106
     1008#: smstunnel.php:2141
     1009msgid "Sending..."
     1010msgstr ""
     1011
     1012#: smstunnel.php:902
     1013#: smstunnel.php:1401
     1014msgid "Request failed."
     1015msgstr ""
     1016
     1017#: smstunnel.php:964
     1018msgid "All"
     1019msgstr ""
     1020
     1021#: smstunnel.php:970
     1022msgid "Sent"
     1023msgstr ""
     1024
     1025#: smstunnel.php:976
     1026msgid "Failed"
     1027msgstr ""
     1028
     1029#: smstunnel.php:982
     1030msgid "Pending"
     1031msgstr ""
     1032
     1033#: smstunnel.php:991
     1034msgid "ID"
     1035msgstr ""
     1036
     1037#: smstunnel.php:995
     1038msgid "Type"
     1039msgstr ""
     1040
     1041#: smstunnel.php:996
     1042msgid "Source"
     1043msgstr ""
     1044
     1045#: smstunnel.php:997
     1046msgid "Date"
     1047msgstr ""
     1048
     1049#: smstunnel.php:1003
     1050msgid "No SMS messages found."
     1051msgstr ""
     1052
     1053#: smstunnel.php:1096
     1054msgid "Inbox - Received SMS"
     1055msgstr ""
     1056
     1057#: smstunnel.php:1105
     1058msgid "Filter by phone:"
     1059msgstr ""
     1060
     1061#: smstunnel.php:1107
     1062msgid "Filter"
     1063msgstr ""
     1064
     1065#: smstunnel.php:1109
     1066msgid "Clear"
     1067msgstr ""
     1068
     1069#: smstunnel.php:1114
     1070msgid "Refresh"
     1071msgstr ""
     1072
     1073#. translators: %d: number of messages
     1074#: smstunnel.php:1119
     1075#, php-format
     1076msgid "Total: %d messages"
     1077msgstr ""
     1078
     1079#: smstunnel.php:1127
     1080msgid "From"
     1081msgstr ""
     1082
     1083#: smstunnel.php:1129
     1084msgid "Device"
     1085msgstr ""
     1086
     1087#: smstunnel.php:1130
     1088msgid "Received"
     1089msgstr ""
     1090
     1091#: smstunnel.php:1136
     1092msgid "No received messages found."
     1093msgstr ""
     1094
     1095#: smstunnel.php:1162
     1096msgid "[E2E Encrypted - Viewable only in mobile app]"
     1097msgstr ""
     1098
     1099#: smstunnel.php:1235
     1100msgid "Received texts stay private"
     1101msgstr ""
     1102
     1103#: smstunnel.php:1236
     1104msgid "For privacy, websites linked to SMSTunnel cannot read the texts your phone receives. You can read and answer them on your computer, in your SMSTunnel dashboard."
     1105msgstr ""
     1106
     1107#: smstunnel.php:1237
     1108msgid "Texts show up there once \"Sync received texts\" is turned on in the SMSTunnel app."
     1109msgstr ""
     1110
     1111#: smstunnel.php:1239
     1112msgid "Open Messages in your dashboard"
     1113msgstr ""
     1114
     1115#. translators: 1: "Apps" link to the SMSTunnel dashboard, 2: name of the menu item for that app on that page
     1116#: smstunnel.php:1246
     1117#, php-format
     1118msgid "If this site uses an API key that you created in your SMSTunnel dashboard, the owner of the key can allow it to read received texts: open %1$s in the dashboard and choose \"%2$s\" in the menu of that app."
     1119msgstr ""
     1120
     1121#: smstunnel.php:1247
     1122msgid "Apps"
     1123msgstr ""
     1124
     1125#: smstunnel.php:1248
     1126msgid "Allow reading received texts"
     1127msgstr ""
     1128
     1129#: smstunnel.php:1262
     1130msgid "The API key saved on this site is no longer valid"
     1131msgstr ""
     1132
     1133#: smstunnel.php:1263
     1134msgid "smstunnel.io did not accept it: the key may have been revoked, deleted or deactivated. Link the site again with Quick Setup, or enter a new API key in Settings. Until then, this site cannot send texts either."
     1135msgstr ""
     1136
     1137#: smstunnel.php:1276
     1138msgid "This site is not linked to SMSTunnel yet."
     1139msgstr ""
     1140
     1141#: smstunnel.php:1287
     1142msgid "Could not reach smstunnel.io"
     1143msgstr ""
     1144
     1145#: smstunnel.php:1288
     1146msgid "Check that this site can connect to the internet, then try again in a few minutes."
     1147msgstr ""
     1148
     1149#: smstunnel.php:1290
     1150msgid "smstunnel.io is temporarily unavailable"
     1151msgstr ""
     1152
     1153#: smstunnel.php:1291
     1154#: smstunnel.php:1300
     1155msgid "Please try again in a few minutes."
     1156msgstr ""
     1157
     1158#: smstunnel.php:1299
     1159msgid "Could not load received texts"
     1160msgstr ""
     1161
     1162#: smstunnel.php:1318
     1163msgid "Try again"
     1164msgstr ""
     1165
     1166#: smstunnel.php:1332
     1167msgid "Developer Documentation"
     1168msgstr ""
     1169
     1170#: smstunnel.php:1335
     1171msgid "Sending SMS from Your Code"
     1172msgstr ""
     1173
     1174#: smstunnel.php:1336
     1175msgid "Use the global function to send SMS from anywhere in your WordPress code:"
     1176msgstr ""
     1177
     1178#: smstunnel.php:1354
     1179msgid "Using Action Hook"
     1180msgstr ""
     1181
     1182#: smstunnel.php:1400
     1183msgid "Testing..."
     1184msgstr ""
     1185
     1186#: smstunnel.php:1402
     1187msgid "Connecting..."
     1188msgstr ""
     1189
     1190#: smstunnel.php:1403
     1191msgid "Connected! Reloading..."
     1192msgstr ""
     1193
     1194#: smstunnel.php:1404
     1195msgid "Connection failed"
     1196msgstr ""
     1197
     1198#: smstunnel.php:1405
     1199#: smstunnel.php:2109
     1200#: smstunnel.php:2144
     1201msgid "Verifying..."
     1202msgstr ""
     1203
     1204#: smstunnel.php:1406
     1205#: smstunnel.php:1898
     1206#: smstunnel.php:1972
     1207msgid "Connected successfully!"
     1208msgstr ""
     1209
     1210#: smstunnel.php:1407
     1211msgid "Verification failed"
     1212msgstr ""
     1213
     1214#: smstunnel.php:1408
     1215msgid "Starting..."
     1216msgstr ""
     1217
     1218#: smstunnel.php:1409
     1219msgid "Waiting for phone..."
     1220msgstr ""
     1221
     1222#: smstunnel.php:1410
     1223msgid "Open SMSTunnel app → Settings → Encryption Settings → Scan E2E QR"
     1224msgstr ""
     1225
     1226#: smstunnel.php:1411
     1227msgid "Cancel Pairing"
     1228msgstr ""
     1229
     1230#: smstunnel.php:1413
     1231msgid "E2E Pairing Complete!"
     1232msgstr ""
     1233
     1234#: smstunnel.php:1416
     1235msgid "Refreshing page..."
     1236msgstr ""
     1237
     1238#: smstunnel.php:1417
     1239msgid "Pairing expired. Please try again."
     1240msgstr ""
     1241
     1242#: smstunnel.php:1418
     1243msgid "Are you sure you want to remove E2E encryption? Messages will no longer be encrypted."
     1244msgstr ""
     1245
     1246#: smstunnel.php:1419
     1247msgid "Removing..."
     1248msgstr ""
     1249
     1250#: smstunnel.php:1474
     1251msgid "SMS sent successfully!"
     1252msgstr ""
     1253
     1254#. translators: %1$d: total devices, %2$d: online devices
     1255#: smstunnel.php:1502
     1256#, php-format
     1257msgid "Connected! %1$d device(s) found, %2$d online."
     1258msgstr ""
     1259
     1260#: smstunnel.php:1543
     1261msgid "API key verified successfully!"
     1262msgstr ""
     1263
     1264#: smstunnel.php:1550
     1265#: smstunnel.php:1594
     1266#: smstunnel.php:1650
     1267msgid "Connection failed: "
     1268msgstr ""
     1269
     1270#: smstunnel.php:1552
     1271msgid "Verification failed. Status: "
     1272msgstr ""
     1273
     1274#: smstunnel.php:1607
     1275msgid "Failed to start pairing"
     1276msgstr ""
     1277
     1278#: smstunnel.php:1624
     1279msgid "Token is required."
     1280msgstr ""
     1281
     1282#: smstunnel.php:1691
     1283msgid "Pairing expired or not found."
     1284msgstr ""
     1285
     1286#: smstunnel.php:1693
     1287msgid "Failed to check status"
     1288msgstr ""
     1289
     1290#: smstunnel.php:1739
     1291msgid "Invalid OAuth state. Please try again."
     1292msgstr ""
     1293
     1294#: smstunnel.php:1826
     1295msgid "Security check failed."
     1296msgstr ""
     1297
     1298#: smstunnel.php:1855
     1299msgid "Invalid authentication data."
     1300msgstr ""
     1301
     1302#: smstunnel.php:1902
     1303msgid "Authentication failed."
     1304msgstr ""
     1305
     1306#: smstunnel.php:1923
     1307msgid "Please enter email and password."
     1308msgstr ""
     1309
     1310#: smstunnel.php:1976
     1311msgid "Invalid email or password."
     1312msgstr ""
     1313
     1314#: smstunnel.php:2033
     1315#: smstunnel.php:2065
     1316msgid "Verification Code"
     1317msgstr ""
     1318
     1319#. translators: %d: number of days
     1320#: smstunnel.php:2044
     1321#, php-format
     1322msgid "Remember this device for %d days"
     1323msgstr ""
     1324
     1325#: smstunnel.php:2060
     1326#: smstunnel.php:2107
     1327#: smstunnel.php:2142
     1328msgid "Send Verification Code"
     1329msgstr ""
     1330
     1331#: smstunnel.php:2070
     1332#: smstunnel.php:2110
     1333#: smstunnel.php:2145
     1334msgid "Verify Code"
     1335msgstr ""
     1336
     1337#: smstunnel.php:2076
     1338#: smstunnel.php:2112
     1339msgid "Skip - I don't have my phone"
     1340msgstr ""
     1341
     1342#: smstunnel.php:2079
     1343msgid "You will need to add your phone number later from your profile."
     1344msgstr ""
     1345
     1346#: smstunnel.php:2097
     1347#: smstunnel.php:2132
     1348msgid "Checking..."
     1349msgstr ""
     1350
     1351#: smstunnel.php:2098
     1352#: smstunnel.php:2133
     1353msgid "Verifying credentials..."
     1354msgstr ""
     1355
     1356#: smstunnel.php:2099
     1357#: smstunnel.php:2134
     1358msgid "Please enter the verification code"
     1359msgstr ""
     1360
     1361#: smstunnel.php:2100
     1362#: smstunnel.php:2135
     1363msgid "Request timeout. Please try again."
     1364msgstr ""
     1365
     1366#: smstunnel.php:2101
     1367#: smstunnel.php:2136
     1368msgid "Connection error. Please try again."
     1369msgstr ""
     1370
     1371#: smstunnel.php:2102
     1372#: smstunnel.php:2137
     1373msgid "Server error. Please try again."
     1374msgstr ""
     1375
     1376#: smstunnel.php:2103
     1377#: smstunnel.php:2138
     1378msgid "Logging in..."
     1379msgstr ""
     1380
     1381#: smstunnel.php:2104
     1382#: smstunnel.php:2139
     1383msgid "SMS server unavailable - logging in without 2FA"
     1384msgstr ""
     1385
     1386#: smstunnel.php:2105
     1387#: smstunnel.php:2140
     1388msgid "Please enter your phone number."
     1389msgstr ""
     1390
     1391#: smstunnel.php:2108
     1392#: smstunnel.php:2143
     1393msgid "Please enter the verification code."
     1394msgstr ""
     1395
     1396#: smstunnel.php:2111
     1397#: smstunnel.php:2146
     1398msgid "Skipping..."
     1399msgstr ""
     1400
     1401#: smstunnel.php:2113
     1402#: smstunnel.php:2148
     1403msgid "Error. Please try again."
     1404msgstr ""
     1405
     1406#: smstunnel.php:2147
     1407msgid "Skip - I do not have my phone"
     1408msgstr ""
     1409
     1410#: smstunnel.php:2164
     1411msgid "Username and password required."
     1412msgstr ""
     1413
     1414#: smstunnel.php:2170
     1415msgid "Invalid username or password."
     1416msgstr ""
     1417
     1418#: smstunnel.php:2180
     1419msgid "SMS service unavailable - logging in without 2FA"
     1420msgstr ""
     1421
     1422#: smstunnel.php:2225
     1423msgid "Phone number required for 2FA. Please enter your phone number."
     1424msgstr ""
     1425
     1426#: smstunnel.php:2244
     1427msgid "Invalid phone - 2FA bypassed"
     1428msgstr ""
     1429
     1430#: smstunnel.php:2247
     1431msgid "Invalid phone number format."
     1432msgstr ""
     1433
     1434#. translators: %s: masked phone number
     1435#: smstunnel.php:2272
     1436#, php-format
     1437msgid "Code already sent to %s"
     1438msgstr ""
     1439
     1440#: smstunnel.php:2282
     1441#: smstunnel.php:2367
     1442#: smstunnel.php:2370
     1443msgid "Too many requests, please try again later."
     1444msgstr ""
     1445
     1446#. translators: %s: masked phone number
     1447#: smstunnel.php:2308
     1448#, php-format
     1449msgid "Code sent to %s"
     1450msgstr ""
     1451
     1452#: smstunnel.php:2313
     1453msgid "Failed to send code."
     1454msgstr ""
     1455
    9031456#: smstunnel.php:2327
    904 #: smstunnel.php:2792
    905 msgid "Your {site_name} verification code is: {code}. Valid for {expiry} minutes."
    906 msgstr ""
    907 
    908 #: smstunnel.php:778
    909 msgid "Placeholders: {code}, {site_name}, {expiry}"
    910 msgstr ""
    911 
    912 #: smstunnel.php:785
    913 msgid "Enable end-to-end encryption so only your phone can read the words of your texts. The server cannot decrypt them. The number stays visible to it, so your Messages page can show who each text went to."
    914 msgstr ""
    915 
    916 #: smstunnel.php:804
    917 msgid "E2E Encryption Active"
    918 msgstr ""
    919 
    920 #: smstunnel.php:808
    921 #: smstunnel.php:1452
    922 msgid "Fingerprint:"
    923 msgstr ""
    924 
    925 #: smstunnel.php:809
    926 msgid "Paired:"
    927 msgstr ""
    928 
    929 #: smstunnel.php:811
    930 msgid "All SMS messages are encrypted before leaving WordPress."
    931 msgstr ""
    932 
    933 #: smstunnel.php:812
    934 #: smstunnel.php:1457
    935 msgid "Remove E2E Pairing"
    936 msgstr ""
    937 
    938 #: smstunnel.php:817
    939 msgid "Pair your phone to enable end-to-end encryption. Messages will be encrypted before leaving WordPress."
    940 msgstr ""
    941 
    942 #: smstunnel.php:820
    943 #: smstunnel.php:1449
    944 msgid "Start E2E Pairing"
    945 msgstr ""
    946 
    947 #: smstunnel.php:844
    948 msgid "Use hybrid encryption (v2)"
    949 msgstr ""
    950 
    951 #: smstunnel.php:847
    952 msgid "Encrypts long messages reliably using AES-256-GCM + RSA-OAEP instead of plain RSA. Requires an up-to-date SMSTunnel app that supports v2 pairing. Leave OFF until your phone app is updated and you have tested a message end-to-end. When OFF, the original (v1) encryption is used."
    953 msgstr ""
    954 
    955 #: smstunnel.php:869
    956 msgid "Test Connection"
    957 msgstr ""
    958 
    959 #: smstunnel.php:872
    960 msgid "Test API Connection"
    961 msgstr ""
    962 
    963 #: smstunnel.php:877
    964 msgid "Save Settings"
    965 msgstr ""
    966 
    967 #: smstunnel.php:895
    968 msgid "Send a Test SMS"
    969 msgstr ""
    970 
    971 #: smstunnel.php:899
    972 #: smstunnel.php:2092
    973 #: smstunnel.php:2835
    974 msgid "Phone Number"
    975 msgstr ""
    976 
    977 #: smstunnel.php:902
    978 msgid "Use E.164 format (e.g., +40712345678)"
    979 msgstr ""
    980 
    981 #: smstunnel.php:908
    982 msgid "Enter your message..."
    983 msgstr ""
    984 
    985 #: smstunnel.php:937
    986 #: smstunnel.php:1505
    987 msgid "Phone and message are required."
    988 msgstr ""
    989 
    990 #: smstunnel.php:938
    991 #: smstunnel.php:2143
    992 #: smstunnel.php:2178
    993 msgid "Sending..."
    994 msgstr ""
    995 
    996 #: smstunnel.php:939
    997 #: smstunnel.php:1438
    998 msgid "Request failed."
    999 msgstr ""
    1000 
    1001 #: smstunnel.php:1001
    1002 msgid "All"
    1003 msgstr ""
    1004 
    1005 #: smstunnel.php:1007
    1006 msgid "Sent"
    1007 msgstr ""
    1008 
    1009 #: smstunnel.php:1013
    1010 msgid "Failed"
    1011 msgstr ""
    1012 
    1013 #: smstunnel.php:1019
    1014 msgid "Pending"
    1015 msgstr ""
    1016 
    1017 #: smstunnel.php:1028
    1018 msgid "ID"
    1019 msgstr ""
    1020 
    1021 #: smstunnel.php:1032
    1022 msgid "Type"
    1023 msgstr ""
    1024 
    1025 #: smstunnel.php:1033
    1026 msgid "Source"
    1027 msgstr ""
    1028 
    1029 #: smstunnel.php:1034
    1030 msgid "Date"
    1031 msgstr ""
    1032 
    1033 #: smstunnel.php:1040
    1034 msgid "No SMS messages found."
    1035 msgstr ""
    1036 
    1037 #: smstunnel.php:1133
    1038 msgid "Inbox - Received SMS"
    1039 msgstr ""
    1040 
    1041 #: smstunnel.php:1142
    1042 msgid "Filter by phone:"
    1043 msgstr ""
    1044 
    1045 #: smstunnel.php:1144
    1046 msgid "Filter"
    1047 msgstr ""
    1048 
    1049 #: smstunnel.php:1146
    1050 msgid "Clear"
    1051 msgstr ""
    1052 
    1053 #: smstunnel.php:1151
    1054 msgid "Refresh"
    1055 msgstr ""
    1056 
    1057 #. translators: %d: number of messages
    1058 #: smstunnel.php:1156
    1059 #, php-format
    1060 msgid "Total: %d messages"
    1061 msgstr ""
    1062 
    1063 #: smstunnel.php:1164
    1064 msgid "From"
    1065 msgstr ""
    1066 
    1067 #: smstunnel.php:1166
    1068 msgid "Device"
    1069 msgstr ""
    1070 
    1071 #: smstunnel.php:1167
    1072 msgid "Received"
    1073 msgstr ""
    1074 
    1075 #: smstunnel.php:1173
    1076 msgid "No received messages found."
    1077 msgstr ""
    1078 
    1079 #: smstunnel.php:1199
    1080 msgid "[E2E Encrypted - Viewable only in mobile app]"
    1081 msgstr ""
    1082 
    1083 #: smstunnel.php:1272
    1084 msgid "Received texts stay private"
    1085 msgstr ""
    1086 
    1087 #: smstunnel.php:1273
    1088 msgid "For privacy, websites linked to SMSTunnel cannot read the texts your phone receives. You can read and answer them on your computer, in your SMSTunnel dashboard."
    1089 msgstr ""
    1090 
    1091 #: smstunnel.php:1274
    1092 msgid "Texts show up there once \"Sync received texts\" is turned on in the SMSTunnel app."
    1093 msgstr ""
    1094 
    1095 #: smstunnel.php:1276
    1096 msgid "Open Messages in your dashboard"
    1097 msgstr ""
    1098 
    1099 #. translators: 1: "Apps" link to the SMSTunnel dashboard, 2: name of the menu item for that app on that page
    1100 #: smstunnel.php:1283
    1101 #, php-format
    1102 msgid "If this site uses an API key that you created in your SMSTunnel dashboard, the owner of the key can allow it to read received texts: open %1$s in the dashboard and choose \"%2$s\" in the menu of that app."
    1103 msgstr ""
    1104 
    1105 #: smstunnel.php:1284
    1106 msgid "Apps"
    1107 msgstr ""
    1108 
    1109 #: smstunnel.php:1285
    1110 msgid "Allow reading received texts"
    1111 msgstr ""
    1112 
    1113 #: smstunnel.php:1299
    1114 msgid "The API key saved on this site is no longer valid"
    1115 msgstr ""
    1116 
    1117 #: smstunnel.php:1300
    1118 msgid "smstunnel.io did not accept it: the key may have been revoked, deleted or deactivated. Link the site again with Quick Setup, or enter a new API key in Settings. Until then, this site cannot send texts either."
    1119 msgstr ""
    1120 
    1121 #: smstunnel.php:1313
    1122 msgid "This site is not linked to SMSTunnel yet."
    1123 msgstr ""
    1124 
    1125 #: smstunnel.php:1324
    1126 msgid "Could not reach smstunnel.io"
    1127 msgstr ""
    1128 
    1129 #: smstunnel.php:1325
    1130 msgid "Check that this site can connect to the internet, then try again in a few minutes."
    1131 msgstr ""
    1132 
    1133 #: smstunnel.php:1327
    1134 msgid "smstunnel.io is temporarily unavailable"
    1135 msgstr ""
    1136 
    1137 #: smstunnel.php:1328
    1138 #: smstunnel.php:1337
    1139 msgid "Please try again in a few minutes."
    1140 msgstr ""
    1141 
    1142 #: smstunnel.php:1336
    1143 msgid "Could not load received texts"
    1144 msgstr ""
    1145 
    1146 #: smstunnel.php:1355
    1147 msgid "Try again"
    1148 msgstr ""
    1149 
    1150 #: smstunnel.php:1369
    1151 msgid "Developer Documentation"
    1152 msgstr ""
    1153 
    1154 #: smstunnel.php:1372
    1155 msgid "Sending SMS from Your Code"
    1156 msgstr ""
    1157 
    1158 #: smstunnel.php:1373
    1159 msgid "Use the global function to send SMS from anywhere in your WordPress code:"
    1160 msgstr ""
    1161 
    1162 #: smstunnel.php:1391
    1163 msgid "Using Action Hook"
    1164 msgstr ""
    1165 
    1166 #: smstunnel.php:1437
    1167 msgid "Testing..."
    1168 msgstr ""
    1169 
    1170 #: smstunnel.php:1439
    1171 msgid "Connecting..."
    1172 msgstr ""
    1173 
    1174 #: smstunnel.php:1440
    1175 msgid "Connected! Reloading..."
    1176 msgstr ""
    1177 
    1178 #: smstunnel.php:1441
    1179 msgid "Connection failed"
    1180 msgstr ""
    1181 
    1182 #: smstunnel.php:1442
    1183 #: smstunnel.php:2146
    1184 #: smstunnel.php:2181
    1185 msgid "Verifying..."
    1186 msgstr ""
    1187 
    1188 #: smstunnel.php:1443
    1189 #: smstunnel.php:1935
    1190 #: smstunnel.php:2009
    1191 msgid "Connected successfully!"
    1192 msgstr ""
    1193 
    1194 #: smstunnel.php:1444
    1195 msgid "Verification failed"
    1196 msgstr ""
    1197 
    1198 #: smstunnel.php:1445
    1199 msgid "Starting..."
    1200 msgstr ""
    1201 
    1202 #: smstunnel.php:1446
    1203 msgid "Waiting for phone..."
    1204 msgstr ""
    1205 
    1206 #: smstunnel.php:1447
    1207 msgid "Open SMSTunnel app → Settings → Encryption Settings → Scan E2E QR"
    1208 msgstr ""
    1209 
    1210 #: smstunnel.php:1448
    1211 msgid "Cancel Pairing"
    1212 msgstr ""
    1213 
    1214 #: smstunnel.php:1450
    1215 msgid "E2E Pairing Complete!"
    1216 msgstr ""
    1217 
    1218 #: smstunnel.php:1453
    1219 msgid "Refreshing page..."
    1220 msgstr ""
    1221 
    1222 #: smstunnel.php:1454
    1223 msgid "Pairing expired. Please try again."
    1224 msgstr ""
    1225 
    1226 #: smstunnel.php:1455
    1227 msgid "Are you sure you want to remove E2E encryption? Messages will no longer be encrypted."
    1228 msgstr ""
    1229 
    1230 #: smstunnel.php:1456
    1231 msgid "Removing..."
    1232 msgstr ""
    1233 
    1234 #: smstunnel.php:1511
    1235 msgid "SMS sent successfully!"
    1236 msgstr ""
    1237 
    1238 #. translators: %1$d: total devices, %2$d: online devices
    1239 #: smstunnel.php:1539
    1240 #, php-format
    1241 msgid "Connected! %1$d device(s) found, %2$d online."
    1242 msgstr ""
    1243 
    1244 #: smstunnel.php:1580
    1245 msgid "API key verified successfully!"
    1246 msgstr ""
    1247 
    1248 #: smstunnel.php:1587
    1249 #: smstunnel.php:1631
    1250 #: smstunnel.php:1687
    1251 msgid "Connection failed: "
    1252 msgstr ""
    1253 
    1254 #: smstunnel.php:1589
    1255 msgid "Verification failed. Status: "
    1256 msgstr ""
    1257 
    1258 #: smstunnel.php:1644
    1259 msgid "Failed to start pairing"
    1260 msgstr ""
    1261 
    1262 #: smstunnel.php:1661
    1263 msgid "Token is required."
    1264 msgstr ""
    1265 
    1266 #: smstunnel.php:1728
    1267 msgid "Pairing expired or not found."
    1268 msgstr ""
    1269 
    1270 #: smstunnel.php:1730
    1271 msgid "Failed to check status"
    1272 msgstr ""
    1273 
    1274 #: smstunnel.php:1776
    1275 msgid "Invalid OAuth state. Please try again."
    1276 msgstr ""
    1277 
    1278 #: smstunnel.php:1863
    1279 msgid "Security check failed."
    1280 msgstr ""
    1281 
    1282 #: smstunnel.php:1892
    1283 msgid "Invalid authentication data."
    1284 msgstr ""
    1285 
    1286 #: smstunnel.php:1939
    1287 msgid "Authentication failed."
    1288 msgstr ""
    1289 
    1290 #: smstunnel.php:1960
    1291 msgid "Please enter email and password."
    1292 msgstr ""
    1293 
    1294 #: smstunnel.php:2013
    1295 msgid "Invalid email or password."
    1296 msgstr ""
    1297 
    1298 #: smstunnel.php:2070
    1299 #: smstunnel.php:2102
    1300 msgid "Verification Code"
    1301 msgstr ""
    1302 
    1303 #. translators: %d: number of days
    1304 #: smstunnel.php:2081
    1305 #, php-format
    1306 msgid "Remember this device for %d days"
    1307 msgstr ""
    1308 
    1309 #: smstunnel.php:2097
    1310 #: smstunnel.php:2144
    1311 #: smstunnel.php:2179
    1312 msgid "Send Verification Code"
    1313 msgstr ""
    1314 
    1315 #: smstunnel.php:2107
    1316 #: smstunnel.php:2147
    1317 #: smstunnel.php:2182
    1318 msgid "Verify Code"
    1319 msgstr ""
    1320 
    1321 #: smstunnel.php:2113
    1322 #: smstunnel.php:2149
    1323 msgid "Skip - I don't have my phone"
    1324 msgstr ""
    1325 
    1326 #: smstunnel.php:2116
    1327 msgid "You will need to add your phone number later from your profile."
    1328 msgstr ""
    1329 
    1330 #: smstunnel.php:2134
    1331 #: smstunnel.php:2169
    1332 msgid "Checking..."
    1333 msgstr ""
    1334 
    1335 #: smstunnel.php:2135
    1336 #: smstunnel.php:2170
    1337 msgid "Verifying credentials..."
    1338 msgstr ""
    1339 
    1340 #: smstunnel.php:2136
    1341 #: smstunnel.php:2171
    1342 msgid "Please enter the verification code"
    1343 msgstr ""
    1344 
    1345 #: smstunnel.php:2137
    1346 #: smstunnel.php:2172
    1347 msgid "Request timeout. Please try again."
    1348 msgstr ""
    1349 
    1350 #: smstunnel.php:2138
    1351 #: smstunnel.php:2173
    1352 msgid "Connection error. Please try again."
    1353 msgstr ""
    1354 
    1355 #: smstunnel.php:2139
    1356 #: smstunnel.php:2174
    1357 msgid "Server error. Please try again."
    1358 msgstr ""
    1359 
    1360 #: smstunnel.php:2140
    1361 #: smstunnel.php:2175
    1362 msgid "Logging in..."
    1363 msgstr ""
    1364 
    1365 #: smstunnel.php:2141
    1366 #: smstunnel.php:2176
    1367 msgid "SMS server unavailable - logging in without 2FA"
    1368 msgstr ""
    1369 
    1370 #: smstunnel.php:2142
    1371 #: smstunnel.php:2177
    1372 msgid "Please enter your phone number."
    1373 msgstr ""
    1374 
    1375 #: smstunnel.php:2145
    1376 #: smstunnel.php:2180
    1377 msgid "Please enter the verification code."
    1378 msgstr ""
    1379 
    1380 #: smstunnel.php:2148
    1381 #: smstunnel.php:2183
    1382 msgid "Skipping..."
    1383 msgstr ""
    1384 
    1385 #: smstunnel.php:2150
    1386 #: smstunnel.php:2185
    1387 msgid "Error. Please try again."
    1388 msgstr ""
    1389 
    1390 #: smstunnel.php:2184
    1391 msgid "Skip - I do not have my phone"
    1392 msgstr ""
    1393 
    1394 #: smstunnel.php:2201
    1395 msgid "Username and password required."
    1396 msgstr ""
    1397 
    1398 #: smstunnel.php:2207
    1399 msgid "Invalid username or password."
    1400 msgstr ""
    1401 
    1402 #: smstunnel.php:2217
    1403 msgid "SMS service unavailable - logging in without 2FA"
    1404 msgstr ""
    1405 
    1406 #: smstunnel.php:2262
    1407 msgid "Phone number required for 2FA. Please enter your phone number."
    1408 msgstr ""
    1409 
    1410 #: smstunnel.php:2281
    1411 msgid "Invalid phone - 2FA bypassed"
    1412 msgstr ""
    1413 
    1414 #: smstunnel.php:2284
    1415 msgid "Invalid phone number format."
     1457msgid "SMS unavailable - 2FA bypassed"
     1458msgstr ""
     1459
     1460#: smstunnel.php:2347
     1461#: smstunnel.php:2417
     1462#: smstunnel.php:2475
     1463msgid "Session expired. Please try logging in again."
     1464msgstr ""
     1465
     1466#: smstunnel.php:2353
     1467msgid "Invalid phone number format. Please use international format (e.g., +40712345678)."
     1468msgstr ""
     1469
     1470#: smstunnel.php:2358
     1471msgid "Premium-rate numbers are not allowed. Please use a standard mobile number."
     1472msgstr ""
     1473
     1474#. translators: %1$s: site name, %2$s: verification code, %3$d: minutes
     1475#: smstunnel.php:2386
     1476#, php-format
     1477msgid "Your %1$s phone verification code is: %2$s. Valid for %3$d minutes."
    14161478msgstr ""
    14171479
    14181480#. translators: %s: masked phone number
    1419 #: smstunnel.php:2309
    1420 #, php-format
    1421 msgid "Code already sent to %s"
    1422 msgstr ""
    1423 
    1424 #: smstunnel.php:2319
    1425 #: smstunnel.php:2404
    1426 #: smstunnel.php:2407
    1427 msgid "Too many requests, please try again later."
    1428 msgstr ""
    1429 
    1430 #. translators: %s: masked phone number
    1431 #: smstunnel.php:2345
    1432 #, php-format
    1433 msgid "Code sent to %s"
    1434 msgstr ""
    1435 
    1436 #: smstunnel.php:2350
    1437 msgid "Failed to send code."
    1438 msgstr ""
    1439 
    1440 #: smstunnel.php:2364
    1441 msgid "SMS unavailable - 2FA bypassed"
    1442 msgstr ""
    1443 
    1444 #: smstunnel.php:2384
    1445 #: smstunnel.php:2454
    1446 #: smstunnel.php:2512
    1447 msgid "Session expired. Please try logging in again."
    1448 msgstr ""
    1449 
    1450 #: smstunnel.php:2390
    1451 msgid "Invalid phone number format. Please use international format (e.g., +40712345678)."
    1452 msgstr ""
    1453 
    1454 #: smstunnel.php:2395
    1455 msgid "Premium-rate numbers are not allowed. Please use a standard mobile number."
    1456 msgstr ""
    1457 
    1458 #. translators: %1$s: site name, %2$s: verification code, %3$d: minutes
    1459 #: smstunnel.php:2423
    1460 #, php-format
    1461 msgid "Your %1$s phone verification code is: %2$s. Valid for %3$d minutes."
    1462 msgstr ""
    1463 
    1464 #. translators: %s: masked phone number
    1465 #: smstunnel.php:2435
     1481#: smstunnel.php:2398
    14661482#, php-format
    14671483msgid "Verification code sent to %s"
    14681484msgstr ""
    14691485
    1470 #: smstunnel.php:2438
     1486#: smstunnel.php:2401
    14711487msgid "Failed to send verification code."
    14721488msgstr ""
    14731489
    1474 #: smstunnel.php:2462
     1490#: smstunnel.php:2425
    14751491msgid "Verification code expired. Please request a new code."
    14761492msgstr ""
    14771493
    1478 #: smstunnel.php:2473
     1494#: smstunnel.php:2436
    14791495msgid "Too many attempts. Please request a new code."
    14801496msgstr ""
    14811497
    1482 #: smstunnel.php:2478
     1498#: smstunnel.php:2441
    14831499msgid "Invalid verification code."
    14841500msgstr ""
    14851501
    1486 #: smstunnel.php:2496
     1502#: smstunnel.php:2459
    14871503msgid "Phone verified successfully! You can now log in."
    14881504msgstr ""
    14891505
    1490 #: smstunnel.php:2522
     1506#: smstunnel.php:2485
    14911507msgid "Phone setup skipped. Please add your phone number from your profile."
    14921508msgstr ""
    14931509
    1494 #: smstunnel.php:2725
     1510#: smstunnel.php:2688
    14951511msgid "<strong>Error:</strong> Verification code expired. Please try again."
    14961512msgstr ""
    14971513
    1498 #: smstunnel.php:2736
     1514#: smstunnel.php:2699
    14991515msgid "<strong>Error:</strong> Too many attempts. Please request a new code."
    15001516msgstr ""
    15011517
    1502 #: smstunnel.php:2741
     1518#: smstunnel.php:2704
    15031519msgid "<strong>Error:</strong> Invalid verification code."
    15041520msgstr ""
    15051521
    1506 #: smstunnel.php:2761
     1522#: smstunnel.php:2724
    15071523msgid "<strong>2FA Required:</strong> Please enter the verification code sent to your phone."
    15081524msgstr ""
    15091525
    1510 #: smstunnel.php:2776
     1526#: smstunnel.php:2739
    15111527msgid "<strong>Error:</strong> No phone number configured. Please reload and complete phone setup."
    15121528msgstr ""
    15131529
    1514 #: smstunnel.php:2781
     1530#: smstunnel.php:2744
    15151531msgid "<strong>Error:</strong> Invalid phone number format. Please update your phone in your profile."
    15161532msgstr ""
    15171533
    15181534#. translators: %1$s: masked phone number, %2$s: code prefix
    1519 #: smstunnel.php:2809
     1535#: smstunnel.php:2772
    15201536#, php-format
    15211537msgid "<strong>2FA Required:</strong> Verification code sent to %1$s. Enter code with prefix <strong>%2$s</strong>."
    … …  
    15231539
    15241540#. translators: %s: error message
    1525 #: smstunnel.php:2822
     1541#: smstunnel.php:2785
    15261542#, php-format
    15271543msgid "<strong>Error:</strong> Failed to send verification code: %s"
    15281544msgstr ""
    15291545
    1530 #: smstunnel.php:2832
     1546#: smstunnel.php:2795
    15311547msgid "SMSTunnel 2FA"
    15321548msgstr ""
    15331549
    1534 #: smstunnel.php:2841
     1550#: smstunnel.php:2804
    15351551msgid "Phone number in international format (e.g., +40712345678). Used for 2FA verification."
    15361552msgstr ""
  • smstunnel/trunk/readme.txt

    r3793052 r3808151  
    55Tested up to: 7.1
    66Requires PHP: 7.4
    7 Stable tag: 1.0.18
     7Stable tag: 1.0.19
    88License: GPLv2 or later
    99License URI: https://www.gnu.org/licenses/gpl-2.0.html
    … …  
    4343* Form Notifications - Built-in texts for Fluent Forms and Forminator: to you, and to the person who filled in the form
    4444* Two-Factor Authentication - Optional SMS codes to secure WordPress logins
    45 * End-to-End Encryption - Optional; messages are encrypted for your phone (RSA keys) before they leave your site
     45* End-to-End Encryption - Optional; texts of any length, in any alphabet, are encrypted for your phone before they leave your site
    4646
    4747== Installation ==
    … …  
    9898
    9999== Changelog ==
     100
     101= 1.0.19 =
     102* Changed: Encrypted texts use the hybrid format (AES-256-GCM with RSA-OAEP) whenever your phone reads it (SMSTunnel app 1.0.8 or newer), so they go out at any length and in any alphabet: Cyrillic, Arabic, Chinese, emoji, letters with diacritics. The "Use hybrid encryption (v2)" setting is gone: it was off unless you turned it on, and without it a text over about 200 Latin letters, or about 35 in other alphabets, could not be encrypted.
     103* Improved: For a phone paired with an older app, which reads only RSA, encrypted texts in other alphabets fit two to three times as many letters as before (about 100 Cyrillic or Arabic ones). A text that is still too long gets a clear error: update the app on the phone and pair it again. Settings shows which format your paired phone uses.
    100104
    101105= 1.0.18 =
    … …  
    209213== Upgrade Notice ==
    210214
     215= 1.0.19 =
     216Encrypted texts of any length, in any alphabet, now go out whenever your phone's SMSTunnel app is 1.0.8 or newer.
     217
    211218= 1.0.18 =
    212219Numbers written with (0) after the country code, such as +49 (0) 170 1234567, now get their texts at the right number.
  • smstunnel/trunk/smstunnel.php

    r3793052 r3808151  
    44 * Plugin URI: https://smstunnel.io/integrations/smstunnel/
    55 * Description: Send texts from your WordPress site through your own Android phone and number - linked by QR code, revocable anytime. Texts for Fluent Forms and Forminator submissions built in. Optional SMS two-factor authentication for WordPress logins. Optional end-to-end encryption.
    6  * Version: 1.0.18
     6 * Version: 1.0.19
    77 * Author: SMSTunnel.io
    88 * Author URI: https://smstunnel.io
    … …  
    2323
    2424// Define plugin constants
    25 define('SMSTUNNEL_VERSION', '1.0.18');
     25define('SMSTUNNEL_VERSION', '1.0.19');
    2626define('SMSTUNNEL_PLUGIN_DIR', plugin_dir_path(__FILE__));
    2727define('SMSTUNNEL_PLUGIN_URL', plugin_dir_url(__FILE__));
    … …  
    312312        register_setting('smstunnel_settings', 'smstunnel_device_public_key', array('sanitize_callback' => 'sanitize_text_field'));
    313313        register_setting('smstunnel_settings', 'smstunnel_e2e_device_id', array('sanitize_callback' => 'sanitize_text_field'));
    314         register_setting('smstunnel_settings', 'smstunnel_e2e_hybrid', array(
    315             'type'              => 'string',
    316             'sanitize_callback' => array($this, 'sanitize_yes_no'),
    317             'default'           => 'no',
    318         ));
     314        // Since 1.0.19 a phone that reads the hybrid format always gets it: the "Use hybrid encryption (v2)"
     315        // setting (option smstunnel_e2e_hybrid) is gone. uninstall.php still deletes the stored option.
    319316
    320317        // API Section
    … …  
    453450            'smstunnel_e2e_section'
    454451        );
    455 
    456         add_settings_field(
    457             'smstunnel_e2e_hybrid',
    458             __('Hybrid Encryption (v2)', 'smstunnel'),
    459             array($this, 'e2e_hybrid_field_callback'),
    460             'smstunnel_settings',
    461             'smstunnel_e2e_section'
    462         );
    463     }
    464 
    465     /**
    466      * Sanitize a yes/no toggle value, coercing anything else to 'no'.
    467      *
    468      * @param mixed $value Raw submitted value.
    469      * @return string 'yes' or 'no'.
    470      */
    471     public function sanitize_yes_no($value) {
    472         return ($value === 'yes' || $value === '1' || $value === 'on' || $value === true) ? 'yes' : 'no';
    473452    }
    474453
    … …  
    798777            $device_name = $e2e_key['device_name'] ?: __('Phone', 'smstunnel');
    799778            $paired_date = !empty($e2e_key['paired_at']) ? date_i18n(get_option('date_format') . ' ' . get_option('time_format'), strtotime($e2e_key['paired_at'])) : '-';
     779            // The format the phone reported when it was paired: 2 = hybrid (any length), else RSA only (245 bytes).
     780            $hybrid = isset($e2e_key['e2e_version']) && (int) $e2e_key['e2e_version'] >= 2;
    800781
    801782            echo '<div style="padding: 15px; background: #e7f5e7; border: 1px solid #46b450; border-radius: 8px; max-width: 450px;">';
    … …  
    808789            echo '<tr><td style="color: #666; padding: 4px 0;">' . esc_html__('Fingerprint:', 'smstunnel') . '</td><td style="padding: 4px 0;"><code style="font-size: 11px; background: #f5f5f5; padding: 2px 6px; border-radius: 3px;">' . esc_html($fingerprint) . '</code></td></tr>';
    809790            echo '<tr><td style="color: #666; padding: 4px 0;">' . esc_html__('Paired:', 'smstunnel') . '</td><td style="padding: 4px 0;">' . esc_html($paired_date) . '</td></tr>';
     791            echo '<tr><td style="color: #666; padding: 4px 0;">' . esc_html__('Format:', 'smstunnel') . '</td><td style="padding: 4px 0;">' . ($hybrid ? esc_html__('Hybrid: texts of any length, in any alphabet', 'smstunnel') : esc_html__('RSA only: short texts', 'smstunnel')) . '</td></tr>';
    810792            echo '</table>';
     793            if (!$hybrid) {
     794                echo '<p style="margin: 12px 0 0 0; font-size: 12px; color: #8a6d3b;">' . esc_html__('Encrypted texts to this phone can be about 200 Latin letters long, or about 100 in other alphabets. To send longer ones, update the SMSTunnel app on your phone, then Remove E2E Pairing and pair again.', 'smstunnel') . '</p>';
     795            }
    811796            echo '<p style="margin: 12px 0 0 0; font-size: 12px; color: #666;">' . esc_html__('All SMS messages are encrypted before leaving WordPress.', 'smstunnel') . '</p>';
    812797            echo '<button type="button" id="smstunnel-remove-e2e" class="button" style="margin-top: 12px; color: #a00;">' . esc_html__('Remove E2E Pairing', 'smstunnel') . '</button>';
    … …  
    826811
    827812        // Note: smstunnelAdmin is provided via wp_localize_script in admin_scripts()
    828     }
    829 
    830     /**
    831      * E2E hybrid encryption (v2) toggle field.
    832      *
    833      * When enabled, and the paired device advertises support (e2e_version >= 2),
    834      * SMS payloads are encrypted with the v2 hybrid scheme (AES-256-GCM for the
    835      * message + RSA-OAEP for the AES key). This removes the ~245 byte RSA size
    836      * limit of the legacy v1 (PKCS#1 v1.5) scheme. Default OFF for safety.
    837      */
    838     public function e2e_hybrid_field_callback() {
    839         $enabled = get_option('smstunnel_e2e_hybrid', 'no') === 'yes';
    840         ?>
    841         <input type="hidden" name="smstunnel_e2e_hybrid" value="no" />
    842         <label style="display: flex; align-items: center; gap: 8px; max-width: 450px;">
    843             <input type="checkbox" name="smstunnel_e2e_hybrid" value="yes" <?php checked($enabled); ?> />
    844             <span><?php esc_html_e('Use hybrid encryption (v2)', 'smstunnel'); ?></span>
    845         </label>
    846         <p class="description" style="max-width: 450px; margin-top: 8px;">
    847             <?php esc_html_e('Encrypts long messages reliably using AES-256-GCM + RSA-OAEP instead of plain RSA. Requires an up-to-date SMSTunnel app that supports v2 pairing. Leave OFF until your phone app is updated and you have tested a message end-to-end. When OFF, the original (v1) encryption is used.', 'smstunnel'); ?>
    848         </p>
    849         <?php
    850813    }
    851814
  • smstunnel/trunk/uninstall.php

    r3780179 r3808151  
    4747    'smstunnel_e2e_key',
    4848    'smstunnel_e2e_device_id',
    49     'smstunnel_e2e_hybrid',
     49    'smstunnel_e2e_hybrid', // the "Use hybrid encryption (v2)" setting, gone in 1.0.19; sites may still have it stored
    5050    'smstunnel_device_public_key',
    5151    'smstunnel_server_public_key',
Note: See TracChangeset for help on using the changeset viewer.