Changeset 3808151
- Timestamp:
- 11/17/2026 09:12:28 PM (less than one hour ago)
- Location:
- smstunnel
- Files:
-
- 12 edited
- 1 copied
-
tags/1.0.19 (copied) (copied from smstunnel/trunk )
-
tags/1.0.19/includes/class-smstunnel-api.php (modified) (3 diffs)
-
tags/1.0.19/includes/class-smstunnel-quick-setup.php (modified) (1 diff)
-
tags/1.0.19/languages/smstunnel.pot (modified) (12 diffs)
-
tags/1.0.19/readme.txt (modified) (4 diffs)
-
tags/1.0.19/smstunnel.php (modified) (7 diffs)
-
tags/1.0.19/uninstall.php (modified) (1 diff)
-
trunk/includes/class-smstunnel-api.php (modified) (3 diffs)
-
trunk/includes/class-smstunnel-quick-setup.php (modified) (1 diff)
-
trunk/languages/smstunnel.pot (modified) (12 diffs)
-
trunk/readme.txt (modified) (4 diffs)
-
trunk/smstunnel.php (modified) (7 diffs)
-
trunk/uninstall.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
smstunnel/tags/1.0.19/includes/class-smstunnel-api.php
r3780347 r3808151 121 121 */ 122 122 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 } 128 136 129 137 // Build PEM from the stored base64 SPKI public key. … … 140 148 } 141 149 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 so147 // existing devices keep workingexactly 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. 148 156 $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;151 157 152 158 $encrypted_payload = ''; 153 159 154 if ($ use_v2) {160 if ($device_e2e_version >= 2) { 155 161 // Padded so the packet's size doesn't give away how long the text is. The phone ignores the 156 162 // extra field. v1 can't take it: RSA alone has room for about 245 bytes. … … 159 165 'message' => $message, 160 166 '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); 163 169 if ($v2 !== false) { 164 170 $encrypted_payload = $v2; 165 171 } 166 172 // If v2 fails for any reason (cipher unavailable, OAEP error), fall 167 // back to v1 below so the messagestill goes out.173 // back to v1 below so a text that fits still goes out. 168 174 } 169 175 170 176 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 } 172 190 $encrypted = ''; 173 191 // 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 203 203 * Clears the API key and everything clear_account_state() clears, sets Quick Setup back to its 204 204 * 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. 207 206 */ 208 207 public static function forget_account() { -
smstunnel/tags/1.0.19/languages/smstunnel.pot
r3780347 r3808151 3 3 msgid "" 4 4 msgstr "" 5 "Project-Id-Version: SMSTunnel 1.0.1 7\n"5 "Project-Id-Version: SMSTunnel 1.0.19\n" 6 6 "Report-Msgid-Bugs-To: https://wordpress.org/support/plugin/smstunnel\n" 7 7 "Last-Translator: FULL NAME <EMAIL@ADDRESS>\n" … … 10 10 "Content-Type: text/plain; charset=UTF-8\n" 11 11 "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" 13 13 "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" 14 14 "X-Generator: WP-CLI 2.12.0\n" … … 43 43 44 44 #: includes/class-smstunnel-api.php:55 45 #: includes/class-smstunnel-api.php:3 1646 #: includes/class-smstunnel-api.php:3 8047 #: includes/class-smstunnel-api.php:4 3348 #: includes/class-smstunnel-api.php: 49349 #: includes/class-smstunnel-api.php:5 3650 #: includes/class-smstunnel-api.php: 59051 #: smstunnel.php:1 60552 #: smstunnel.php:16 6645 #: 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 53 53 msgid "API key not configured." 54 54 msgstr "" 55 55 56 56 #: includes/class-smstunnel-api.php:107 57 #: includes/class-smstunnel-api.php:3 6558 #: includes/class-smstunnel-api.php:4 1959 #: includes/class-smstunnel-quick-setup.php:57 957 #: includes/class-smstunnel-api.php:383 58 #: includes/class-smstunnel-api.php:437 59 #: includes/class-smstunnel-quick-setup.php:578 60 60 #: includes/class-smstunnel-rest-api.php:162 61 61 #: includes/integrations/class-smstunnel-integrations.php:267 … … 63 63 msgstr "" 64 64 65 #: includes/class-smstunnel-api.php:138 65 #: includes/class-smstunnel-api.php:133 66 msgid "Encryption failed: the text could not be prepared." 67 msgstr "" 68 69 #: includes/class-smstunnel-api.php:146 66 70 msgid "Invalid device public key. Please re-scan the QR code." 67 71 msgstr "" 68 72 69 #: includes/class-smstunnel-api.php:177 73 #: includes/class-smstunnel-api.php:186 74 msgid "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." 75 msgstr "" 76 77 #: includes/class-smstunnel-api.php:187 78 msgid "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." 79 msgstr "" 80 81 #: includes/class-smstunnel-api.php:195 70 82 msgid "Encryption failed. The message may be too long for RSA encryption." 71 83 msgstr "" 72 84 73 #: includes/class-smstunnel-api.php:2 2185 #: includes/class-smstunnel-api.php:239 74 86 msgid "Failed to send encrypted SMS" 75 87 msgstr "" 76 88 77 #: includes/class-smstunnel-api.php:3 5589 #: includes/class-smstunnel-api.php:373 78 90 msgid "Invalid 2FA message format" 79 91 msgstr "" 80 92 81 #: includes/class-smstunnel-api.php:4 6882 #: smstunnel.php:15 8593 #: includes/class-smstunnel-api.php:486 94 #: smstunnel.php:1548 83 95 msgid "Invalid API key." 84 96 msgstr "" 85 97 86 #: includes/class-smstunnel-api.php:4 7998 #: includes/class-smstunnel-api.php:497 87 99 msgid "Connection failed." 88 100 msgstr "" 89 101 90 #: includes/class-smstunnel-api.php:5 22102 #: includes/class-smstunnel-api.php:540 91 103 msgid "Failed to get usage." 92 104 msgstr "" 93 105 94 #: includes/class-smstunnel-api.php:5 65106 #: includes/class-smstunnel-api.php:583 95 107 msgid "Failed to get status." 96 108 msgstr "" 97 109 98 #: includes/class-smstunnel-api.php:6 61110 #: includes/class-smstunnel-api.php:679 99 111 msgid "Failed to get received messages." 100 112 msgstr "" 101 113 102 114 #. translators: %d: number of seconds to wait before retrying 103 #: includes/class-smstunnel-api.php: 684115 #: includes/class-smstunnel-api.php:702 104 116 #, php-format 105 117 msgid "Rate limit reached. Please try again in %d seconds." 106 118 msgstr "" 107 119 108 #: includes/class-smstunnel-api.php: 688109 #: smstunnel.php:1 331120 #: includes/class-smstunnel-api.php:706 121 #: smstunnel.php:1294 110 122 msgid "Rate limit reached. Please wait a moment and try again." 111 123 msgstr "" … … 135 147 msgstr "" 136 148 137 #: includes/class-smstunnel-quick-setup.php:2 40149 #: includes/class-smstunnel-quick-setup.php:239 138 150 #: includes/class-smstunnel-setup-notice.php:525 139 #: smstunnel.php:14 98140 #: smstunnel.php:1 524141 #: smstunnel.php:15 57142 #: smstunnel.php:1 600143 #: smstunnel.php:16 56144 #: smstunnel.php:17 42145 #: smstunnel.php:18 58146 #: smstunnel.php:18 84147 #: smstunnel.php:19 52151 #: 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 148 160 msgid "Permission denied." 149 161 msgstr "" 150 162 151 #: includes/class-smstunnel-quick-setup.php:34 8163 #: includes/class-smstunnel-quick-setup.php:347 152 164 msgid "Failed to create pairing token" 153 165 msgstr "" 154 166 167 #: includes/class-smstunnel-quick-setup.php:381 155 168 #: includes/class-smstunnel-quick-setup.php:382 156 #: includes/class-smstunnel-quick-setup.php:383157 169 #: includes/class-smstunnel-setup-notice.php:457 158 #: smstunnel.php:6 21159 #: smstunnel.php:1 302160 #: smstunnel.php:1 314170 #: smstunnel.php:600 171 #: smstunnel.php:1265 172 #: smstunnel.php:1277 161 173 msgid "Quick Setup" 162 174 msgstr "" 163 175 176 #: includes/class-smstunnel-quick-setup.php:442 177 #: includes/class-smstunnel-quick-setup.php:522 178 msgid "Waiting for QR scan..." 179 msgstr "" 180 164 181 #: includes/class-smstunnel-quick-setup.php:443 165 #: includes/class-smstunnel-quick-setup.php:523 166 msgid "Waiting for QR scan..." 182 msgid "Setup completed!" 167 183 msgstr "" 168 184 169 185 #: includes/class-smstunnel-quick-setup.php:444 170 msgid "Setup completed!"186 msgid "Setup failed" 171 187 msgstr "" 172 188 173 189 #: includes/class-smstunnel-quick-setup.php:445 174 msgid " Setup failed"190 msgid "Connected to" 175 191 msgstr "" 176 192 177 193 #: includes/class-smstunnel-quick-setup.php:446 178 msgid "Co nnected to"194 msgid "Could not generate QR code. Please check your internet connection." 179 195 msgstr "" 180 196 181 197 #: includes/class-smstunnel-quick-setup.php:447 182 msgid " Could not generate QR code. Please check your internet connection."198 msgid "Generate new QR code" 183 199 msgstr "" 184 200 185 201 #: includes/class-smstunnel-quick-setup.php:448 186 msgid "Generate new QR code"187 msgstr ""188 189 #: includes/class-smstunnel-quick-setup.php:449190 202 msgid "Generating..." 191 203 msgstr "" 192 204 193 #: includes/class-smstunnel-quick-setup.php:46 3205 #: includes/class-smstunnel-quick-setup.php:462 194 206 msgid "SMSTunnel Quick Setup" 195 207 msgstr "" 196 208 197 #: includes/class-smstunnel-quick-setup.php:47 1209 #: includes/class-smstunnel-quick-setup.php:470 198 210 msgid "Setup Complete!" 199 211 msgstr "" 200 212 201 213 #. translators: %s: device name 202 #: includes/class-smstunnel-quick-setup.php:47 6214 #: includes/class-smstunnel-quick-setup.php:475 203 215 #, php-format 204 216 msgid "Connected device: %s" 205 217 msgstr "" 206 218 207 #: includes/class-smstunnel-quick-setup.php:47 9219 #: includes/class-smstunnel-quick-setup.php:478 208 220 msgid "Your site is connected to SMSTunnel." 209 221 msgstr "" 210 222 211 #: includes/class-smstunnel-quick-setup.php:48 4223 #: includes/class-smstunnel-quick-setup.php:483 212 224 #: smstunnel.php:254 213 225 #: smstunnel.php:255 214 #: smstunnel.php:8 92215 #: smstunnel.php: 915226 #: smstunnel.php:855 227 #: smstunnel.php:878 216 228 msgid "Send SMS" 217 229 msgstr "" 218 230 219 #: includes/class-smstunnel-quick-setup.php:48 7231 #: includes/class-smstunnel-quick-setup.php:486 220 232 #: includes/class-smstunnel-setup-notice.php:465 221 233 #: includes/class-smstunnel-setup-notice.php:474 222 234 #: smstunnel.php:245 223 235 #: smstunnel.php:246 224 #: smstunnel.php:1 303236 #: smstunnel.php:1266 225 237 msgid "Settings" 226 238 msgstr "" 227 239 228 #: includes/class-smstunnel-quick-setup.php:49 2240 #: includes/class-smstunnel-quick-setup.php:491 229 241 msgid "Reset and setup again" 230 242 msgstr "" 231 243 232 #: includes/class-smstunnel-quick-setup.php:50 1244 #: includes/class-smstunnel-quick-setup.php:500 233 245 msgid "Setup in 3 simple steps:" 234 246 msgstr "" 235 247 236 #: includes/class-smstunnel-quick-setup.php:50 6248 #: includes/class-smstunnel-quick-setup.php:505 237 249 msgid "Download the SMSTunnel app" 238 250 msgstr "" 239 251 240 #: includes/class-smstunnel-quick-setup.php:51 6252 #: includes/class-smstunnel-quick-setup.php:515 241 253 msgid "Scan this QR code" 242 254 msgstr "" 243 255 244 #: includes/class-smstunnel-quick-setup.php:51 9256 #: includes/class-smstunnel-quick-setup.php:518 245 257 msgid "Open the SMSTunnel app and scan this code" 246 258 msgstr "" 247 259 260 #: includes/class-smstunnel-quick-setup.php:530 261 msgid "Done! Start sending SMS" 262 msgstr "" 263 248 264 #: includes/class-smstunnel-quick-setup.php:531 249 msgid "Done! Start sending SMS"250 msgstr ""251 252 #: includes/class-smstunnel-quick-setup.php:532253 265 msgid "Once connected, you can send SMS directly from WordPress." 254 266 msgstr "" 255 267 256 #: includes/class-smstunnel-quick-setup.php:53 9268 #: includes/class-smstunnel-quick-setup.php:538 257 269 msgid "Already have an SMSTunnel account?" 258 270 msgstr "" 259 271 260 #: includes/class-smstunnel-quick-setup.php:54 1272 #: includes/class-smstunnel-quick-setup.php:540 261 273 msgid "Advanced Setup" 262 274 msgstr "" … … 267 279 268 280 #: includes/class-smstunnel-rest-api.php:176 269 #: smstunnel.php:15 63281 #: smstunnel.php:1526 270 282 msgid "API key is required." 271 283 msgstr "" … … 324 336 #. translators: %s: technical error details, e.g. "cURL error 28: Operation timed out" 325 337 #: includes/class-smstunnel-setup-notice.php:317 326 #: smstunnel.php:13 51338 #: smstunnel.php:1314 327 339 #, php-format 328 340 msgid "Details: %s" … … 432 444 #: includes/integrations/fluent-forms/class-smstunnel-fluent-forms-feed.php:161 433 445 #: includes/integrations/forminator/class-smstunnel-forminator-form-settings.php:251 434 #: smstunnel.php: 906435 #: smstunnel.php: 1030436 #: smstunnel.php:11 65446 #: smstunnel.php:869 447 #: smstunnel.php:993 448 #: smstunnel.php:1128 437 449 msgid "Message" 438 450 msgstr "" … … 455 467 456 468 #: includes/integrations/fluent-forms/class-smstunnel-fluent-forms-feed.php:186 457 #: smstunnel.php: 1031469 #: smstunnel.php:994 458 470 msgid "Status" 459 471 msgstr "" … … 649 661 #: smstunnel.php:263 650 662 #: smstunnel.php:264 651 #: smstunnel.php:9 96663 #: smstunnel.php:959 652 664 msgid "SMS History" 653 665 msgstr "" … … 663 675 msgstr "" 664 676 665 #: smstunnel.php:32 3677 #: smstunnel.php:320 666 678 msgid "API Configuration" 667 679 msgstr "" 668 680 669 #: smstunnel.php:3 30681 #: smstunnel.php:327 670 682 msgid "Server URL" 671 683 msgstr "" 672 684 673 #: smstunnel.php:33 8685 #: smstunnel.php:335 674 686 msgid "API Key" 675 687 msgstr "" 676 688 677 #: smstunnel.php:34 6689 #: smstunnel.php:343 678 690 msgid "Device ID" 679 691 msgstr "" 680 692 681 #: smstunnel.php:35 5693 #: smstunnel.php:352 682 694 msgid "General Settings" 683 695 msgstr "" 684 696 685 #: smstunnel.php:3 62697 #: smstunnel.php:359 686 698 msgid "Language" 687 699 msgstr "" 688 700 689 #: smstunnel.php:3 71701 #: smstunnel.php:368 690 702 msgid "Two-Factor Authentication (2FA)" 691 703 msgstr "" 692 704 693 #: smstunnel.php:37 8705 #: smstunnel.php:375 694 706 msgid "WordPress Login 2FA" 695 707 msgstr "" 696 708 697 #: smstunnel.php:38 6709 #: smstunnel.php:383 698 710 msgid "Require 2FA for roles" 699 711 msgstr "" 700 712 701 #: smstunnel.php:39 4713 #: smstunnel.php:391 702 714 msgid "Code expiry (minutes)" 703 715 msgstr "" 704 716 705 #: smstunnel.php: 402717 #: smstunnel.php:399 706 718 msgid "Code length" 707 719 msgstr "" 708 720 709 #: smstunnel.php:4 10721 #: smstunnel.php:407 710 722 msgid "2FA Message Template" 711 723 msgstr "" 712 724 713 #: smstunnel.php:41 8725 #: smstunnel.php:415 714 726 msgid "Server Fallback" 715 727 msgstr "" 716 728 717 #: smstunnel.php:42 6729 #: smstunnel.php:423 718 730 msgid "Remember Device" 719 731 msgstr "" 720 732 721 #: smstunnel.php:43 4733 #: smstunnel.php:431 722 734 msgid "Remember Duration (days)" 723 735 msgstr "" 724 736 725 #: smstunnel.php:44 3737 #: smstunnel.php:440 726 738 msgid "End-to-End Encryption" 727 739 msgstr "" 728 740 729 #: smstunnel.php:4 50741 #: smstunnel.php:447 730 742 msgid "Device Public Key" 731 743 msgstr "" 732 744 733 #: smstunnel.php:458734 msgid "Hybrid Encryption (v2)"735 msgstr ""736 737 745 #. translators: %s: link to the Apps page of the SMSTunnel dashboard 738 #: smstunnel.php:4 82746 #: smstunnel.php:461 739 747 #, php-format 740 748 msgid "Configure your SMSTunnel API credentials. Get your API key from %s" 741 749 msgstr "" 742 750 743 #: smstunnel.php:4 95751 #: smstunnel.php:474 744 752 msgid "API endpoint URL: https://smstunnel.io/api/v1" 745 753 msgstr "" 746 754 755 #: smstunnel.php:522 756 #: smstunnel.php:788 757 #: smstunnel.php:1414 758 msgid "Device:" 759 msgstr "" 760 761 #: smstunnel.php:522 762 #: smstunnel.php:777 763 #: smstunnel.php:992 764 #: smstunnel.php:1673 765 msgid "Phone" 766 msgstr "" 767 768 #: smstunnel.php:524 769 msgid "With an API key from your SMSTunnel dashboard" 770 msgstr "" 771 772 #: smstunnel.php:532 773 msgid "API Key:" 774 msgstr "" 775 776 #: smstunnel.php:539 777 msgid "Reconnect" 778 msgstr "" 779 747 780 #: 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:" 781 msgid "Are you sure you want to disconnect?" 782 msgstr "" 783 784 #: smstunnel.php:544 785 msgid "Disconnect" 766 786 msgstr "" 767 787 768 788 #: smstunnel.php:560 769 msgid "Reconnect"770 msgstr ""771 772 #: smstunnel.php:564773 msgid "Are you sure you want to disconnect?"774 msgstr ""775 776 #: smstunnel.php:565777 msgid "Disconnect"778 msgstr ""779 780 #: smstunnel.php:581781 789 msgid "Connect with API Key" 782 790 msgstr "" 783 791 784 #: smstunnel.php:5 84792 #: smstunnel.php:563 785 793 msgid "Connect" 786 794 msgstr "" 787 795 788 796 #. translators: %s: link to the Apps page of the SMSTunnel dashboard 797 #: smstunnel.php:568 798 #, php-format 799 msgid "Get your API key in %s: Apps, Add an app." 800 msgstr "" 801 802 #: smstunnel.php:569 803 msgid "your SMSTunnel dashboard" 804 msgstr "" 805 806 #: smstunnel.php:577 807 msgid "Connect with" 808 msgstr "" 809 810 #: smstunnel.php:583 811 msgid "Google" 812 msgstr "" 813 789 814 #: 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" 815 msgid "Facebook" 816 msgstr "" 817 818 #: smstunnel.php:597 819 msgid "Scan QR Code" 820 msgstr "" 821 822 #: smstunnel.php:602 823 msgid "Scan with SMSTunnel app" 824 msgstr "" 825 826 #: smstunnel.php:608 827 msgid "Connect with Email" 804 828 msgstr "" 805 829 806 830 #: smstunnel.php:610 807 msgid "Facebook"808 msgstr ""809 810 #: smstunnel.php:618811 msgid "Scan QR Code"812 msgstr ""813 814 #: smstunnel.php:623815 msgid "Scan with SMSTunnel app"816 msgstr ""817 818 #: smstunnel.php:629819 msgid "Connect with Email"820 msgstr ""821 822 #: smstunnel.php:631823 831 msgid "Email" 824 832 msgstr "" 825 833 834 #: smstunnel.php:611 835 msgid "Password" 836 msgstr "" 837 838 #: smstunnel.php:612 839 msgid "Login" 840 msgstr "" 841 842 #. translators: %s: registration URL 843 #: smstunnel.php:615 844 #, php-format 845 msgid "Don't have an account? <a href=\"%s\" target=\"_blank\">Register</a>" 846 msgstr "" 847 826 848 #: smstunnel.php:632 827 msgid "Password"828 msgstr ""829 830 #: smstunnel.php:633831 msgid "Login"832 msgstr ""833 834 #. translators: %s: registration URL835 #: smstunnel.php:636836 #, php-format837 msgid "Don't have an account? <a href=\"%s\" target=\"_blank\">Register</a>"838 msgstr ""839 840 #: smstunnel.php:653841 849 msgid "Optional. Specify a device ID to use for sending SMS. Leave empty to use any available device." 842 850 msgstr "" 843 851 844 #: smstunnel.php:6 60852 #: smstunnel.php:639 845 853 msgid "General plugin settings." 846 854 msgstr "" 847 855 848 856 #. translators: %s: site locale code 849 #: smstunnel.php:6 72857 #: smstunnel.php:651 850 858 #, php-format 851 859 msgid "Site default (%s)" 852 860 msgstr "" 853 861 854 #: smstunnel.php:6 83862 #: smstunnel.php:662 855 863 msgid "Select the language for SMS messages. Default uses the site language." 856 864 msgstr "" 857 865 858 #: smstunnel.php:6 90866 #: smstunnel.php:669 859 867 msgid "Add SMS-based two-factor authentication. Users need a phone number in their profile." 860 868 msgstr "" 861 869 862 #: smstunnel.php:6 99870 #: smstunnel.php:678 863 871 msgid "Enable SMS 2FA for WordPress login (wp-login.php)" 864 872 msgstr "" 865 873 874 #: smstunnel.php:687 875 msgid "Allow login without 2FA when SMS server is unavailable" 876 msgstr "" 877 878 #: smstunnel.php:688 879 msgid "Security note: When enabled, users can login without 2FA if the SMS server cannot be reached. This prevents lockouts but reduces security." 880 msgstr "" 881 882 #: smstunnel.php:697 883 msgid "Allow users to remember this device" 884 msgstr "" 885 886 #: smstunnel.php:698 887 msgid "Users can skip 2FA on trusted devices. Device trust is based on browser and IP address." 888 msgstr "" 889 890 #: smstunnel.php:707 891 msgid "days" 892 msgstr "" 893 866 894 #: smstunnel.php:708 867 msgid "Allow login without 2FA when SMS server is unavailable"868 msgstr ""869 870 #: smstunnel.php:709871 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:718875 msgid "Allow users to remember this device"876 msgstr ""877 878 #: smstunnel.php:719879 msgid "Users can skip 2FA on trusted devices. Device trust is based on browser and IP address."880 msgstr ""881 882 #: smstunnel.php:728883 msgid "days"884 msgstr ""885 886 #: smstunnel.php:729887 895 msgid "How long a device stays trusted before requiring 2FA again." 888 896 msgstr "" 889 897 890 #: smstunnel.php:7 46898 #: smstunnel.php:725 891 899 msgid "Select which user roles require 2FA." 892 900 msgstr "" 893 901 894 #: smstunnel.php:7 55902 #: smstunnel.php:734 895 903 msgid "minutes" 896 904 msgstr "" 897 905 898 #: smstunnel.php:7 66906 #: smstunnel.php:745 899 907 msgid "digits" 900 908 msgstr "" 901 909 902 #: smstunnel.php:775 910 #: smstunnel.php:754 911 #: smstunnel.php:2290 912 #: smstunnel.php:2755 913 msgid "Your {site_name} verification code is: {code}. Valid for {expiry} minutes." 914 msgstr "" 915 916 #: smstunnel.php:757 917 msgid "Placeholders: {code}, {site_name}, {expiry}" 918 msgstr "" 919 920 #: smstunnel.php:764 921 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." 922 msgstr "" 923 924 #: smstunnel.php:785 925 msgid "E2E Encryption Active" 926 msgstr "" 927 928 #: smstunnel.php:789 929 #: smstunnel.php:1415 930 msgid "Fingerprint:" 931 msgstr "" 932 933 #: smstunnel.php:790 934 msgid "Paired:" 935 msgstr "" 936 937 #: smstunnel.php:791 938 msgid "Format:" 939 msgstr "" 940 941 #: smstunnel.php:791 942 msgid "Hybrid: texts of any length, in any alphabet" 943 msgstr "" 944 945 #: smstunnel.php:791 946 msgid "RSA only: short texts" 947 msgstr "" 948 949 #: smstunnel.php:794 950 msgid "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." 951 msgstr "" 952 953 #: smstunnel.php:796 954 msgid "All SMS messages are encrypted before leaving WordPress." 955 msgstr "" 956 957 #: smstunnel.php:797 958 #: smstunnel.php:1420 959 msgid "Remove E2E Pairing" 960 msgstr "" 961 962 #: smstunnel.php:802 963 msgid "Pair your phone to enable end-to-end encryption. Messages will be encrypted before leaving WordPress." 964 msgstr "" 965 966 #: smstunnel.php:805 967 #: smstunnel.php:1412 968 msgid "Start E2E Pairing" 969 msgstr "" 970 971 #: smstunnel.php:832 972 msgid "Test Connection" 973 msgstr "" 974 975 #: smstunnel.php:835 976 msgid "Test API Connection" 977 msgstr "" 978 979 #: smstunnel.php:840 980 msgid "Save Settings" 981 msgstr "" 982 983 #: smstunnel.php:858 984 msgid "Send a Test SMS" 985 msgstr "" 986 987 #: smstunnel.php:862 988 #: smstunnel.php:2055 989 #: smstunnel.php:2798 990 msgid "Phone Number" 991 msgstr "" 992 993 #: smstunnel.php:865 994 msgid "Use E.164 format (e.g., +40712345678)" 995 msgstr "" 996 997 #: smstunnel.php:871 998 msgid "Enter your message..." 999 msgstr "" 1000 1001 #: smstunnel.php:900 1002 #: smstunnel.php:1468 1003 msgid "Phone and message are required." 1004 msgstr "" 1005 1006 #: smstunnel.php:901 1007 #: smstunnel.php:2106 1008 #: smstunnel.php:2141 1009 msgid "Sending..." 1010 msgstr "" 1011 1012 #: smstunnel.php:902 1013 #: smstunnel.php:1401 1014 msgid "Request failed." 1015 msgstr "" 1016 1017 #: smstunnel.php:964 1018 msgid "All" 1019 msgstr "" 1020 1021 #: smstunnel.php:970 1022 msgid "Sent" 1023 msgstr "" 1024 1025 #: smstunnel.php:976 1026 msgid "Failed" 1027 msgstr "" 1028 1029 #: smstunnel.php:982 1030 msgid "Pending" 1031 msgstr "" 1032 1033 #: smstunnel.php:991 1034 msgid "ID" 1035 msgstr "" 1036 1037 #: smstunnel.php:995 1038 msgid "Type" 1039 msgstr "" 1040 1041 #: smstunnel.php:996 1042 msgid "Source" 1043 msgstr "" 1044 1045 #: smstunnel.php:997 1046 msgid "Date" 1047 msgstr "" 1048 1049 #: smstunnel.php:1003 1050 msgid "No SMS messages found." 1051 msgstr "" 1052 1053 #: smstunnel.php:1096 1054 msgid "Inbox - Received SMS" 1055 msgstr "" 1056 1057 #: smstunnel.php:1105 1058 msgid "Filter by phone:" 1059 msgstr "" 1060 1061 #: smstunnel.php:1107 1062 msgid "Filter" 1063 msgstr "" 1064 1065 #: smstunnel.php:1109 1066 msgid "Clear" 1067 msgstr "" 1068 1069 #: smstunnel.php:1114 1070 msgid "Refresh" 1071 msgstr "" 1072 1073 #. translators: %d: number of messages 1074 #: smstunnel.php:1119 1075 #, php-format 1076 msgid "Total: %d messages" 1077 msgstr "" 1078 1079 #: smstunnel.php:1127 1080 msgid "From" 1081 msgstr "" 1082 1083 #: smstunnel.php:1129 1084 msgid "Device" 1085 msgstr "" 1086 1087 #: smstunnel.php:1130 1088 msgid "Received" 1089 msgstr "" 1090 1091 #: smstunnel.php:1136 1092 msgid "No received messages found." 1093 msgstr "" 1094 1095 #: smstunnel.php:1162 1096 msgid "[E2E Encrypted - Viewable only in mobile app]" 1097 msgstr "" 1098 1099 #: smstunnel.php:1235 1100 msgid "Received texts stay private" 1101 msgstr "" 1102 1103 #: smstunnel.php:1236 1104 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." 1105 msgstr "" 1106 1107 #: smstunnel.php:1237 1108 msgid "Texts show up there once \"Sync received texts\" is turned on in the SMSTunnel app." 1109 msgstr "" 1110 1111 #: smstunnel.php:1239 1112 msgid "Open Messages in your dashboard" 1113 msgstr "" 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 1118 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." 1119 msgstr "" 1120 1121 #: smstunnel.php:1247 1122 msgid "Apps" 1123 msgstr "" 1124 1125 #: smstunnel.php:1248 1126 msgid "Allow reading received texts" 1127 msgstr "" 1128 1129 #: smstunnel.php:1262 1130 msgid "The API key saved on this site is no longer valid" 1131 msgstr "" 1132 1133 #: smstunnel.php:1263 1134 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." 1135 msgstr "" 1136 1137 #: smstunnel.php:1276 1138 msgid "This site is not linked to SMSTunnel yet." 1139 msgstr "" 1140 1141 #: smstunnel.php:1287 1142 msgid "Could not reach smstunnel.io" 1143 msgstr "" 1144 1145 #: smstunnel.php:1288 1146 msgid "Check that this site can connect to the internet, then try again in a few minutes." 1147 msgstr "" 1148 1149 #: smstunnel.php:1290 1150 msgid "smstunnel.io is temporarily unavailable" 1151 msgstr "" 1152 1153 #: smstunnel.php:1291 1154 #: smstunnel.php:1300 1155 msgid "Please try again in a few minutes." 1156 msgstr "" 1157 1158 #: smstunnel.php:1299 1159 msgid "Could not load received texts" 1160 msgstr "" 1161 1162 #: smstunnel.php:1318 1163 msgid "Try again" 1164 msgstr "" 1165 1166 #: smstunnel.php:1332 1167 msgid "Developer Documentation" 1168 msgstr "" 1169 1170 #: smstunnel.php:1335 1171 msgid "Sending SMS from Your Code" 1172 msgstr "" 1173 1174 #: smstunnel.php:1336 1175 msgid "Use the global function to send SMS from anywhere in your WordPress code:" 1176 msgstr "" 1177 1178 #: smstunnel.php:1354 1179 msgid "Using Action Hook" 1180 msgstr "" 1181 1182 #: smstunnel.php:1400 1183 msgid "Testing..." 1184 msgstr "" 1185 1186 #: smstunnel.php:1402 1187 msgid "Connecting..." 1188 msgstr "" 1189 1190 #: smstunnel.php:1403 1191 msgid "Connected! Reloading..." 1192 msgstr "" 1193 1194 #: smstunnel.php:1404 1195 msgid "Connection failed" 1196 msgstr "" 1197 1198 #: smstunnel.php:1405 1199 #: smstunnel.php:2109 1200 #: smstunnel.php:2144 1201 msgid "Verifying..." 1202 msgstr "" 1203 1204 #: smstunnel.php:1406 1205 #: smstunnel.php:1898 1206 #: smstunnel.php:1972 1207 msgid "Connected successfully!" 1208 msgstr "" 1209 1210 #: smstunnel.php:1407 1211 msgid "Verification failed" 1212 msgstr "" 1213 1214 #: smstunnel.php:1408 1215 msgid "Starting..." 1216 msgstr "" 1217 1218 #: smstunnel.php:1409 1219 msgid "Waiting for phone..." 1220 msgstr "" 1221 1222 #: smstunnel.php:1410 1223 msgid "Open SMSTunnel app → Settings → Encryption Settings → Scan E2E QR" 1224 msgstr "" 1225 1226 #: smstunnel.php:1411 1227 msgid "Cancel Pairing" 1228 msgstr "" 1229 1230 #: smstunnel.php:1413 1231 msgid "E2E Pairing Complete!" 1232 msgstr "" 1233 1234 #: smstunnel.php:1416 1235 msgid "Refreshing page..." 1236 msgstr "" 1237 1238 #: smstunnel.php:1417 1239 msgid "Pairing expired. Please try again." 1240 msgstr "" 1241 1242 #: smstunnel.php:1418 1243 msgid "Are you sure you want to remove E2E encryption? Messages will no longer be encrypted." 1244 msgstr "" 1245 1246 #: smstunnel.php:1419 1247 msgid "Removing..." 1248 msgstr "" 1249 1250 #: smstunnel.php:1474 1251 msgid "SMS sent successfully!" 1252 msgstr "" 1253 1254 #. translators: %1$d: total devices, %2$d: online devices 1255 #: smstunnel.php:1502 1256 #, php-format 1257 msgid "Connected! %1$d device(s) found, %2$d online." 1258 msgstr "" 1259 1260 #: smstunnel.php:1543 1261 msgid "API key verified successfully!" 1262 msgstr "" 1263 1264 #: smstunnel.php:1550 1265 #: smstunnel.php:1594 1266 #: smstunnel.php:1650 1267 msgid "Connection failed: " 1268 msgstr "" 1269 1270 #: smstunnel.php:1552 1271 msgid "Verification failed. Status: " 1272 msgstr "" 1273 1274 #: smstunnel.php:1607 1275 msgid "Failed to start pairing" 1276 msgstr "" 1277 1278 #: smstunnel.php:1624 1279 msgid "Token is required." 1280 msgstr "" 1281 1282 #: smstunnel.php:1691 1283 msgid "Pairing expired or not found." 1284 msgstr "" 1285 1286 #: smstunnel.php:1693 1287 msgid "Failed to check status" 1288 msgstr "" 1289 1290 #: smstunnel.php:1739 1291 msgid "Invalid OAuth state. Please try again." 1292 msgstr "" 1293 1294 #: smstunnel.php:1826 1295 msgid "Security check failed." 1296 msgstr "" 1297 1298 #: smstunnel.php:1855 1299 msgid "Invalid authentication data." 1300 msgstr "" 1301 1302 #: smstunnel.php:1902 1303 msgid "Authentication failed." 1304 msgstr "" 1305 1306 #: smstunnel.php:1923 1307 msgid "Please enter email and password." 1308 msgstr "" 1309 1310 #: smstunnel.php:1976 1311 msgid "Invalid email or password." 1312 msgstr "" 1313 1314 #: smstunnel.php:2033 1315 #: smstunnel.php:2065 1316 msgid "Verification Code" 1317 msgstr "" 1318 1319 #. translators: %d: number of days 1320 #: smstunnel.php:2044 1321 #, php-format 1322 msgid "Remember this device for %d days" 1323 msgstr "" 1324 1325 #: smstunnel.php:2060 1326 #: smstunnel.php:2107 1327 #: smstunnel.php:2142 1328 msgid "Send Verification Code" 1329 msgstr "" 1330 1331 #: smstunnel.php:2070 1332 #: smstunnel.php:2110 1333 #: smstunnel.php:2145 1334 msgid "Verify Code" 1335 msgstr "" 1336 1337 #: smstunnel.php:2076 1338 #: smstunnel.php:2112 1339 msgid "Skip - I don't have my phone" 1340 msgstr "" 1341 1342 #: smstunnel.php:2079 1343 msgid "You will need to add your phone number later from your profile." 1344 msgstr "" 1345 1346 #: smstunnel.php:2097 1347 #: smstunnel.php:2132 1348 msgid "Checking..." 1349 msgstr "" 1350 1351 #: smstunnel.php:2098 1352 #: smstunnel.php:2133 1353 msgid "Verifying credentials..." 1354 msgstr "" 1355 1356 #: smstunnel.php:2099 1357 #: smstunnel.php:2134 1358 msgid "Please enter the verification code" 1359 msgstr "" 1360 1361 #: smstunnel.php:2100 1362 #: smstunnel.php:2135 1363 msgid "Request timeout. Please try again." 1364 msgstr "" 1365 1366 #: smstunnel.php:2101 1367 #: smstunnel.php:2136 1368 msgid "Connection error. Please try again." 1369 msgstr "" 1370 1371 #: smstunnel.php:2102 1372 #: smstunnel.php:2137 1373 msgid "Server error. Please try again." 1374 msgstr "" 1375 1376 #: smstunnel.php:2103 1377 #: smstunnel.php:2138 1378 msgid "Logging in..." 1379 msgstr "" 1380 1381 #: smstunnel.php:2104 1382 #: smstunnel.php:2139 1383 msgid "SMS server unavailable - logging in without 2FA" 1384 msgstr "" 1385 1386 #: smstunnel.php:2105 1387 #: smstunnel.php:2140 1388 msgid "Please enter your phone number." 1389 msgstr "" 1390 1391 #: smstunnel.php:2108 1392 #: smstunnel.php:2143 1393 msgid "Please enter the verification code." 1394 msgstr "" 1395 1396 #: smstunnel.php:2111 1397 #: smstunnel.php:2146 1398 msgid "Skipping..." 1399 msgstr "" 1400 1401 #: smstunnel.php:2113 1402 #: smstunnel.php:2148 1403 msgid "Error. Please try again." 1404 msgstr "" 1405 1406 #: smstunnel.php:2147 1407 msgid "Skip - I do not have my phone" 1408 msgstr "" 1409 1410 #: smstunnel.php:2164 1411 msgid "Username and password required." 1412 msgstr "" 1413 1414 #: smstunnel.php:2170 1415 msgid "Invalid username or password." 1416 msgstr "" 1417 1418 #: smstunnel.php:2180 1419 msgid "SMS service unavailable - logging in without 2FA" 1420 msgstr "" 1421 1422 #: smstunnel.php:2225 1423 msgid "Phone number required for 2FA. Please enter your phone number." 1424 msgstr "" 1425 1426 #: smstunnel.php:2244 1427 msgid "Invalid phone - 2FA bypassed" 1428 msgstr "" 1429 1430 #: smstunnel.php:2247 1431 msgid "Invalid phone number format." 1432 msgstr "" 1433 1434 #. translators: %s: masked phone number 1435 #: smstunnel.php:2272 1436 #, php-format 1437 msgid "Code already sent to %s" 1438 msgstr "" 1439 1440 #: smstunnel.php:2282 1441 #: smstunnel.php:2367 1442 #: smstunnel.php:2370 1443 msgid "Too many requests, please try again later." 1444 msgstr "" 1445 1446 #. translators: %s: masked phone number 1447 #: smstunnel.php:2308 1448 #, php-format 1449 msgid "Code sent to %s" 1450 msgstr "" 1451 1452 #: smstunnel.php:2313 1453 msgid "Failed to send code." 1454 msgstr "" 1455 903 1456 #: 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." 1457 msgid "SMS unavailable - 2FA bypassed" 1458 msgstr "" 1459 1460 #: smstunnel.php:2347 1461 #: smstunnel.php:2417 1462 #: smstunnel.php:2475 1463 msgid "Session expired. Please try logging in again." 1464 msgstr "" 1465 1466 #: smstunnel.php:2353 1467 msgid "Invalid phone number format. Please use international format (e.g., +40712345678)." 1468 msgstr "" 1469 1470 #: smstunnel.php:2358 1471 msgid "Premium-rate numbers are not allowed. Please use a standard mobile number." 1472 msgstr "" 1473 1474 #. translators: %1$s: site name, %2$s: verification code, %3$d: minutes 1475 #: smstunnel.php:2386 1476 #, php-format 1477 msgid "Your %1$s phone verification code is: %2$s. Valid for %3$d minutes." 1416 1478 msgstr "" 1417 1479 1418 1480 #. 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 1466 1482 #, php-format 1467 1483 msgid "Verification code sent to %s" 1468 1484 msgstr "" 1469 1485 1470 #: smstunnel.php:24 381486 #: smstunnel.php:2401 1471 1487 msgid "Failed to send verification code." 1472 1488 msgstr "" 1473 1489 1474 #: smstunnel.php:24 621490 #: smstunnel.php:2425 1475 1491 msgid "Verification code expired. Please request a new code." 1476 1492 msgstr "" 1477 1493 1478 #: smstunnel.php:24 731494 #: smstunnel.php:2436 1479 1495 msgid "Too many attempts. Please request a new code." 1480 1496 msgstr "" 1481 1497 1482 #: smstunnel.php:24 781498 #: smstunnel.php:2441 1483 1499 msgid "Invalid verification code." 1484 1500 msgstr "" 1485 1501 1486 #: smstunnel.php:24 961502 #: smstunnel.php:2459 1487 1503 msgid "Phone verified successfully! You can now log in." 1488 1504 msgstr "" 1489 1505 1490 #: smstunnel.php:2 5221506 #: smstunnel.php:2485 1491 1507 msgid "Phone setup skipped. Please add your phone number from your profile." 1492 1508 msgstr "" 1493 1509 1494 #: smstunnel.php:2 7251510 #: smstunnel.php:2688 1495 1511 msgid "<strong>Error:</strong> Verification code expired. Please try again." 1496 1512 msgstr "" 1497 1513 1498 #: smstunnel.php:2 7361514 #: smstunnel.php:2699 1499 1515 msgid "<strong>Error:</strong> Too many attempts. Please request a new code." 1500 1516 msgstr "" 1501 1517 1502 #: smstunnel.php:27 411518 #: smstunnel.php:2704 1503 1519 msgid "<strong>Error:</strong> Invalid verification code." 1504 1520 msgstr "" 1505 1521 1506 #: smstunnel.php:27 611522 #: smstunnel.php:2724 1507 1523 msgid "<strong>2FA Required:</strong> Please enter the verification code sent to your phone." 1508 1524 msgstr "" 1509 1525 1510 #: smstunnel.php:27 761526 #: smstunnel.php:2739 1511 1527 msgid "<strong>Error:</strong> No phone number configured. Please reload and complete phone setup." 1512 1528 msgstr "" 1513 1529 1514 #: smstunnel.php:27 811530 #: smstunnel.php:2744 1515 1531 msgid "<strong>Error:</strong> Invalid phone number format. Please update your phone in your profile." 1516 1532 msgstr "" 1517 1533 1518 1534 #. translators: %1$s: masked phone number, %2$s: code prefix 1519 #: smstunnel.php:2 8091535 #: smstunnel.php:2772 1520 1536 #, php-format 1521 1537 msgid "<strong>2FA Required:</strong> Verification code sent to %1$s. Enter code with prefix <strong>%2$s</strong>." … … 1523 1539 1524 1540 #. translators: %s: error message 1525 #: smstunnel.php:2 8221541 #: smstunnel.php:2785 1526 1542 #, php-format 1527 1543 msgid "<strong>Error:</strong> Failed to send verification code: %s" 1528 1544 msgstr "" 1529 1545 1530 #: smstunnel.php:2 8321546 #: smstunnel.php:2795 1531 1547 msgid "SMSTunnel 2FA" 1532 1548 msgstr "" 1533 1549 1534 #: smstunnel.php:28 411550 #: smstunnel.php:2804 1535 1551 msgid "Phone number in international format (e.g., +40712345678). Used for 2FA verification." 1536 1552 msgstr "" -
smstunnel/tags/1.0.19/readme.txt
r3793052 r3808151 5 5 Tested up to: 7.1 6 6 Requires PHP: 7.4 7 Stable tag: 1.0.1 87 Stable tag: 1.0.19 8 8 License: GPLv2 or later 9 9 License URI: https://www.gnu.org/licenses/gpl-2.0.html … … 43 43 * Form Notifications - Built-in texts for Fluent Forms and Forminator: to you, and to the person who filled in the form 44 44 * 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 site45 * End-to-End Encryption - Optional; texts of any length, in any alphabet, are encrypted for your phone before they leave your site 46 46 47 47 == Installation == … … 98 98 99 99 == 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. 100 104 101 105 = 1.0.18 = … … 209 213 == Upgrade Notice == 210 214 215 = 1.0.19 = 216 Encrypted texts of any length, in any alphabet, now go out whenever your phone's SMSTunnel app is 1.0.8 or newer. 217 211 218 = 1.0.18 = 212 219 Numbers 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 4 4 * Plugin URI: https://smstunnel.io/integrations/smstunnel/ 5 5 * 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.1 86 * Version: 1.0.19 7 7 * Author: SMSTunnel.io 8 8 * Author URI: https://smstunnel.io … … 23 23 24 24 // Define plugin constants 25 define('SMSTUNNEL_VERSION', '1.0.1 8');25 define('SMSTUNNEL_VERSION', '1.0.19'); 26 26 define('SMSTUNNEL_PLUGIN_DIR', plugin_dir_path(__FILE__)); 27 27 define('SMSTUNNEL_PLUGIN_URL', plugin_dir_url(__FILE__)); … … 312 312 register_setting('smstunnel_settings', 'smstunnel_device_public_key', array('sanitize_callback' => 'sanitize_text_field')); 313 313 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. 319 316 320 317 // API Section … … 453 450 'smstunnel_e2e_section' 454 451 ); 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';473 452 } 474 453 … … 798 777 $device_name = $e2e_key['device_name'] ?: __('Phone', 'smstunnel'); 799 778 $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; 800 781 801 782 echo '<div style="padding: 15px; background: #e7f5e7; border: 1px solid #46b450; border-radius: 8px; max-width: 450px;">'; … … 808 789 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>'; 809 790 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>'; 810 792 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 } 811 796 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>'; 812 797 echo '<button type="button" id="smstunnel-remove-e2e" class="button" style="margin-top: 12px; color: #a00;">' . esc_html__('Remove E2E Pairing', 'smstunnel') . '</button>'; … … 826 811 827 812 // 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 the835 * message + RSA-OAEP for the AES key). This removes the ~245 byte RSA size836 * 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 <?php850 813 } 851 814 -
smstunnel/tags/1.0.19/uninstall.php
r3780179 r3808151 47 47 'smstunnel_e2e_key', 48 48 '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 50 50 'smstunnel_device_public_key', 51 51 'smstunnel_server_public_key', -
smstunnel/trunk/includes/class-smstunnel-api.php
r3780347 r3808151 121 121 */ 122 122 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 } 128 136 129 137 // Build PEM from the stored base64 SPKI public key. … … 140 148 } 141 149 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 so147 // existing devices keep workingexactly 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. 148 156 $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;151 157 152 158 $encrypted_payload = ''; 153 159 154 if ($ use_v2) {160 if ($device_e2e_version >= 2) { 155 161 // Padded so the packet's size doesn't give away how long the text is. The phone ignores the 156 162 // extra field. v1 can't take it: RSA alone has room for about 245 bytes. … … 159 165 'message' => $message, 160 166 '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); 163 169 if ($v2 !== false) { 164 170 $encrypted_payload = $v2; 165 171 } 166 172 // If v2 fails for any reason (cipher unavailable, OAEP error), fall 167 // back to v1 below so the messagestill goes out.173 // back to v1 below so a text that fits still goes out. 168 174 } 169 175 170 176 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 } 172 190 $encrypted = ''; 173 191 // RSA encrypt with PKCS1 v1.5 padding (compatible with Flutter encrypt package) -
smstunnel/trunk/includes/class-smstunnel-quick-setup.php
r3780347 r3808151 203 203 * Clears the API key and everything clear_account_state() clears, sets Quick Setup back to its 204 204 * 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. 207 206 */ 208 207 public static function forget_account() { -
smstunnel/trunk/languages/smstunnel.pot
r3780347 r3808151 3 3 msgid "" 4 4 msgstr "" 5 "Project-Id-Version: SMSTunnel 1.0.1 7\n"5 "Project-Id-Version: SMSTunnel 1.0.19\n" 6 6 "Report-Msgid-Bugs-To: https://wordpress.org/support/plugin/smstunnel\n" 7 7 "Last-Translator: FULL NAME <EMAIL@ADDRESS>\n" … … 10 10 "Content-Type: text/plain; charset=UTF-8\n" 11 11 "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" 13 13 "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" 14 14 "X-Generator: WP-CLI 2.12.0\n" … … 43 43 44 44 #: includes/class-smstunnel-api.php:55 45 #: includes/class-smstunnel-api.php:3 1646 #: includes/class-smstunnel-api.php:3 8047 #: includes/class-smstunnel-api.php:4 3348 #: includes/class-smstunnel-api.php: 49349 #: includes/class-smstunnel-api.php:5 3650 #: includes/class-smstunnel-api.php: 59051 #: smstunnel.php:1 60552 #: smstunnel.php:16 6645 #: 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 53 53 msgid "API key not configured." 54 54 msgstr "" 55 55 56 56 #: includes/class-smstunnel-api.php:107 57 #: includes/class-smstunnel-api.php:3 6558 #: includes/class-smstunnel-api.php:4 1959 #: includes/class-smstunnel-quick-setup.php:57 957 #: includes/class-smstunnel-api.php:383 58 #: includes/class-smstunnel-api.php:437 59 #: includes/class-smstunnel-quick-setup.php:578 60 60 #: includes/class-smstunnel-rest-api.php:162 61 61 #: includes/integrations/class-smstunnel-integrations.php:267 … … 63 63 msgstr "" 64 64 65 #: includes/class-smstunnel-api.php:138 65 #: includes/class-smstunnel-api.php:133 66 msgid "Encryption failed: the text could not be prepared." 67 msgstr "" 68 69 #: includes/class-smstunnel-api.php:146 66 70 msgid "Invalid device public key. Please re-scan the QR code." 67 71 msgstr "" 68 72 69 #: includes/class-smstunnel-api.php:177 73 #: includes/class-smstunnel-api.php:186 74 msgid "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." 75 msgstr "" 76 77 #: includes/class-smstunnel-api.php:187 78 msgid "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." 79 msgstr "" 80 81 #: includes/class-smstunnel-api.php:195 70 82 msgid "Encryption failed. The message may be too long for RSA encryption." 71 83 msgstr "" 72 84 73 #: includes/class-smstunnel-api.php:2 2185 #: includes/class-smstunnel-api.php:239 74 86 msgid "Failed to send encrypted SMS" 75 87 msgstr "" 76 88 77 #: includes/class-smstunnel-api.php:3 5589 #: includes/class-smstunnel-api.php:373 78 90 msgid "Invalid 2FA message format" 79 91 msgstr "" 80 92 81 #: includes/class-smstunnel-api.php:4 6882 #: smstunnel.php:15 8593 #: includes/class-smstunnel-api.php:486 94 #: smstunnel.php:1548 83 95 msgid "Invalid API key." 84 96 msgstr "" 85 97 86 #: includes/class-smstunnel-api.php:4 7998 #: includes/class-smstunnel-api.php:497 87 99 msgid "Connection failed." 88 100 msgstr "" 89 101 90 #: includes/class-smstunnel-api.php:5 22102 #: includes/class-smstunnel-api.php:540 91 103 msgid "Failed to get usage." 92 104 msgstr "" 93 105 94 #: includes/class-smstunnel-api.php:5 65106 #: includes/class-smstunnel-api.php:583 95 107 msgid "Failed to get status." 96 108 msgstr "" 97 109 98 #: includes/class-smstunnel-api.php:6 61110 #: includes/class-smstunnel-api.php:679 99 111 msgid "Failed to get received messages." 100 112 msgstr "" 101 113 102 114 #. translators: %d: number of seconds to wait before retrying 103 #: includes/class-smstunnel-api.php: 684115 #: includes/class-smstunnel-api.php:702 104 116 #, php-format 105 117 msgid "Rate limit reached. Please try again in %d seconds." 106 118 msgstr "" 107 119 108 #: includes/class-smstunnel-api.php: 688109 #: smstunnel.php:1 331120 #: includes/class-smstunnel-api.php:706 121 #: smstunnel.php:1294 110 122 msgid "Rate limit reached. Please wait a moment and try again." 111 123 msgstr "" … … 135 147 msgstr "" 136 148 137 #: includes/class-smstunnel-quick-setup.php:2 40149 #: includes/class-smstunnel-quick-setup.php:239 138 150 #: includes/class-smstunnel-setup-notice.php:525 139 #: smstunnel.php:14 98140 #: smstunnel.php:1 524141 #: smstunnel.php:15 57142 #: smstunnel.php:1 600143 #: smstunnel.php:16 56144 #: smstunnel.php:17 42145 #: smstunnel.php:18 58146 #: smstunnel.php:18 84147 #: smstunnel.php:19 52151 #: 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 148 160 msgid "Permission denied." 149 161 msgstr "" 150 162 151 #: includes/class-smstunnel-quick-setup.php:34 8163 #: includes/class-smstunnel-quick-setup.php:347 152 164 msgid "Failed to create pairing token" 153 165 msgstr "" 154 166 167 #: includes/class-smstunnel-quick-setup.php:381 155 168 #: includes/class-smstunnel-quick-setup.php:382 156 #: includes/class-smstunnel-quick-setup.php:383157 169 #: includes/class-smstunnel-setup-notice.php:457 158 #: smstunnel.php:6 21159 #: smstunnel.php:1 302160 #: smstunnel.php:1 314170 #: smstunnel.php:600 171 #: smstunnel.php:1265 172 #: smstunnel.php:1277 161 173 msgid "Quick Setup" 162 174 msgstr "" 163 175 176 #: includes/class-smstunnel-quick-setup.php:442 177 #: includes/class-smstunnel-quick-setup.php:522 178 msgid "Waiting for QR scan..." 179 msgstr "" 180 164 181 #: includes/class-smstunnel-quick-setup.php:443 165 #: includes/class-smstunnel-quick-setup.php:523 166 msgid "Waiting for QR scan..." 182 msgid "Setup completed!" 167 183 msgstr "" 168 184 169 185 #: includes/class-smstunnel-quick-setup.php:444 170 msgid "Setup completed!"186 msgid "Setup failed" 171 187 msgstr "" 172 188 173 189 #: includes/class-smstunnel-quick-setup.php:445 174 msgid " Setup failed"190 msgid "Connected to" 175 191 msgstr "" 176 192 177 193 #: includes/class-smstunnel-quick-setup.php:446 178 msgid "Co nnected to"194 msgid "Could not generate QR code. Please check your internet connection." 179 195 msgstr "" 180 196 181 197 #: includes/class-smstunnel-quick-setup.php:447 182 msgid " Could not generate QR code. Please check your internet connection."198 msgid "Generate new QR code" 183 199 msgstr "" 184 200 185 201 #: includes/class-smstunnel-quick-setup.php:448 186 msgid "Generate new QR code"187 msgstr ""188 189 #: includes/class-smstunnel-quick-setup.php:449190 202 msgid "Generating..." 191 203 msgstr "" 192 204 193 #: includes/class-smstunnel-quick-setup.php:46 3205 #: includes/class-smstunnel-quick-setup.php:462 194 206 msgid "SMSTunnel Quick Setup" 195 207 msgstr "" 196 208 197 #: includes/class-smstunnel-quick-setup.php:47 1209 #: includes/class-smstunnel-quick-setup.php:470 198 210 msgid "Setup Complete!" 199 211 msgstr "" 200 212 201 213 #. translators: %s: device name 202 #: includes/class-smstunnel-quick-setup.php:47 6214 #: includes/class-smstunnel-quick-setup.php:475 203 215 #, php-format 204 216 msgid "Connected device: %s" 205 217 msgstr "" 206 218 207 #: includes/class-smstunnel-quick-setup.php:47 9219 #: includes/class-smstunnel-quick-setup.php:478 208 220 msgid "Your site is connected to SMSTunnel." 209 221 msgstr "" 210 222 211 #: includes/class-smstunnel-quick-setup.php:48 4223 #: includes/class-smstunnel-quick-setup.php:483 212 224 #: smstunnel.php:254 213 225 #: smstunnel.php:255 214 #: smstunnel.php:8 92215 #: smstunnel.php: 915226 #: smstunnel.php:855 227 #: smstunnel.php:878 216 228 msgid "Send SMS" 217 229 msgstr "" 218 230 219 #: includes/class-smstunnel-quick-setup.php:48 7231 #: includes/class-smstunnel-quick-setup.php:486 220 232 #: includes/class-smstunnel-setup-notice.php:465 221 233 #: includes/class-smstunnel-setup-notice.php:474 222 234 #: smstunnel.php:245 223 235 #: smstunnel.php:246 224 #: smstunnel.php:1 303236 #: smstunnel.php:1266 225 237 msgid "Settings" 226 238 msgstr "" 227 239 228 #: includes/class-smstunnel-quick-setup.php:49 2240 #: includes/class-smstunnel-quick-setup.php:491 229 241 msgid "Reset and setup again" 230 242 msgstr "" 231 243 232 #: includes/class-smstunnel-quick-setup.php:50 1244 #: includes/class-smstunnel-quick-setup.php:500 233 245 msgid "Setup in 3 simple steps:" 234 246 msgstr "" 235 247 236 #: includes/class-smstunnel-quick-setup.php:50 6248 #: includes/class-smstunnel-quick-setup.php:505 237 249 msgid "Download the SMSTunnel app" 238 250 msgstr "" 239 251 240 #: includes/class-smstunnel-quick-setup.php:51 6252 #: includes/class-smstunnel-quick-setup.php:515 241 253 msgid "Scan this QR code" 242 254 msgstr "" 243 255 244 #: includes/class-smstunnel-quick-setup.php:51 9256 #: includes/class-smstunnel-quick-setup.php:518 245 257 msgid "Open the SMSTunnel app and scan this code" 246 258 msgstr "" 247 259 260 #: includes/class-smstunnel-quick-setup.php:530 261 msgid "Done! Start sending SMS" 262 msgstr "" 263 248 264 #: includes/class-smstunnel-quick-setup.php:531 249 msgid "Done! Start sending SMS"250 msgstr ""251 252 #: includes/class-smstunnel-quick-setup.php:532253 265 msgid "Once connected, you can send SMS directly from WordPress." 254 266 msgstr "" 255 267 256 #: includes/class-smstunnel-quick-setup.php:53 9268 #: includes/class-smstunnel-quick-setup.php:538 257 269 msgid "Already have an SMSTunnel account?" 258 270 msgstr "" 259 271 260 #: includes/class-smstunnel-quick-setup.php:54 1272 #: includes/class-smstunnel-quick-setup.php:540 261 273 msgid "Advanced Setup" 262 274 msgstr "" … … 267 279 268 280 #: includes/class-smstunnel-rest-api.php:176 269 #: smstunnel.php:15 63281 #: smstunnel.php:1526 270 282 msgid "API key is required." 271 283 msgstr "" … … 324 336 #. translators: %s: technical error details, e.g. "cURL error 28: Operation timed out" 325 337 #: includes/class-smstunnel-setup-notice.php:317 326 #: smstunnel.php:13 51338 #: smstunnel.php:1314 327 339 #, php-format 328 340 msgid "Details: %s" … … 432 444 #: includes/integrations/fluent-forms/class-smstunnel-fluent-forms-feed.php:161 433 445 #: includes/integrations/forminator/class-smstunnel-forminator-form-settings.php:251 434 #: smstunnel.php: 906435 #: smstunnel.php: 1030436 #: smstunnel.php:11 65446 #: smstunnel.php:869 447 #: smstunnel.php:993 448 #: smstunnel.php:1128 437 449 msgid "Message" 438 450 msgstr "" … … 455 467 456 468 #: includes/integrations/fluent-forms/class-smstunnel-fluent-forms-feed.php:186 457 #: smstunnel.php: 1031469 #: smstunnel.php:994 458 470 msgid "Status" 459 471 msgstr "" … … 649 661 #: smstunnel.php:263 650 662 #: smstunnel.php:264 651 #: smstunnel.php:9 96663 #: smstunnel.php:959 652 664 msgid "SMS History" 653 665 msgstr "" … … 663 675 msgstr "" 664 676 665 #: smstunnel.php:32 3677 #: smstunnel.php:320 666 678 msgid "API Configuration" 667 679 msgstr "" 668 680 669 #: smstunnel.php:3 30681 #: smstunnel.php:327 670 682 msgid "Server URL" 671 683 msgstr "" 672 684 673 #: smstunnel.php:33 8685 #: smstunnel.php:335 674 686 msgid "API Key" 675 687 msgstr "" 676 688 677 #: smstunnel.php:34 6689 #: smstunnel.php:343 678 690 msgid "Device ID" 679 691 msgstr "" 680 692 681 #: smstunnel.php:35 5693 #: smstunnel.php:352 682 694 msgid "General Settings" 683 695 msgstr "" 684 696 685 #: smstunnel.php:3 62697 #: smstunnel.php:359 686 698 msgid "Language" 687 699 msgstr "" 688 700 689 #: smstunnel.php:3 71701 #: smstunnel.php:368 690 702 msgid "Two-Factor Authentication (2FA)" 691 703 msgstr "" 692 704 693 #: smstunnel.php:37 8705 #: smstunnel.php:375 694 706 msgid "WordPress Login 2FA" 695 707 msgstr "" 696 708 697 #: smstunnel.php:38 6709 #: smstunnel.php:383 698 710 msgid "Require 2FA for roles" 699 711 msgstr "" 700 712 701 #: smstunnel.php:39 4713 #: smstunnel.php:391 702 714 msgid "Code expiry (minutes)" 703 715 msgstr "" 704 716 705 #: smstunnel.php: 402717 #: smstunnel.php:399 706 718 msgid "Code length" 707 719 msgstr "" 708 720 709 #: smstunnel.php:4 10721 #: smstunnel.php:407 710 722 msgid "2FA Message Template" 711 723 msgstr "" 712 724 713 #: smstunnel.php:41 8725 #: smstunnel.php:415 714 726 msgid "Server Fallback" 715 727 msgstr "" 716 728 717 #: smstunnel.php:42 6729 #: smstunnel.php:423 718 730 msgid "Remember Device" 719 731 msgstr "" 720 732 721 #: smstunnel.php:43 4733 #: smstunnel.php:431 722 734 msgid "Remember Duration (days)" 723 735 msgstr "" 724 736 725 #: smstunnel.php:44 3737 #: smstunnel.php:440 726 738 msgid "End-to-End Encryption" 727 739 msgstr "" 728 740 729 #: smstunnel.php:4 50741 #: smstunnel.php:447 730 742 msgid "Device Public Key" 731 743 msgstr "" 732 744 733 #: smstunnel.php:458734 msgid "Hybrid Encryption (v2)"735 msgstr ""736 737 745 #. translators: %s: link to the Apps page of the SMSTunnel dashboard 738 #: smstunnel.php:4 82746 #: smstunnel.php:461 739 747 #, php-format 740 748 msgid "Configure your SMSTunnel API credentials. Get your API key from %s" 741 749 msgstr "" 742 750 743 #: smstunnel.php:4 95751 #: smstunnel.php:474 744 752 msgid "API endpoint URL: https://smstunnel.io/api/v1" 745 753 msgstr "" 746 754 755 #: smstunnel.php:522 756 #: smstunnel.php:788 757 #: smstunnel.php:1414 758 msgid "Device:" 759 msgstr "" 760 761 #: smstunnel.php:522 762 #: smstunnel.php:777 763 #: smstunnel.php:992 764 #: smstunnel.php:1673 765 msgid "Phone" 766 msgstr "" 767 768 #: smstunnel.php:524 769 msgid "With an API key from your SMSTunnel dashboard" 770 msgstr "" 771 772 #: smstunnel.php:532 773 msgid "API Key:" 774 msgstr "" 775 776 #: smstunnel.php:539 777 msgid "Reconnect" 778 msgstr "" 779 747 780 #: 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:" 781 msgid "Are you sure you want to disconnect?" 782 msgstr "" 783 784 #: smstunnel.php:544 785 msgid "Disconnect" 766 786 msgstr "" 767 787 768 788 #: smstunnel.php:560 769 msgid "Reconnect"770 msgstr ""771 772 #: smstunnel.php:564773 msgid "Are you sure you want to disconnect?"774 msgstr ""775 776 #: smstunnel.php:565777 msgid "Disconnect"778 msgstr ""779 780 #: smstunnel.php:581781 789 msgid "Connect with API Key" 782 790 msgstr "" 783 791 784 #: smstunnel.php:5 84792 #: smstunnel.php:563 785 793 msgid "Connect" 786 794 msgstr "" 787 795 788 796 #. translators: %s: link to the Apps page of the SMSTunnel dashboard 797 #: smstunnel.php:568 798 #, php-format 799 msgid "Get your API key in %s: Apps, Add an app." 800 msgstr "" 801 802 #: smstunnel.php:569 803 msgid "your SMSTunnel dashboard" 804 msgstr "" 805 806 #: smstunnel.php:577 807 msgid "Connect with" 808 msgstr "" 809 810 #: smstunnel.php:583 811 msgid "Google" 812 msgstr "" 813 789 814 #: 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" 815 msgid "Facebook" 816 msgstr "" 817 818 #: smstunnel.php:597 819 msgid "Scan QR Code" 820 msgstr "" 821 822 #: smstunnel.php:602 823 msgid "Scan with SMSTunnel app" 824 msgstr "" 825 826 #: smstunnel.php:608 827 msgid "Connect with Email" 804 828 msgstr "" 805 829 806 830 #: smstunnel.php:610 807 msgid "Facebook"808 msgstr ""809 810 #: smstunnel.php:618811 msgid "Scan QR Code"812 msgstr ""813 814 #: smstunnel.php:623815 msgid "Scan with SMSTunnel app"816 msgstr ""817 818 #: smstunnel.php:629819 msgid "Connect with Email"820 msgstr ""821 822 #: smstunnel.php:631823 831 msgid "Email" 824 832 msgstr "" 825 833 834 #: smstunnel.php:611 835 msgid "Password" 836 msgstr "" 837 838 #: smstunnel.php:612 839 msgid "Login" 840 msgstr "" 841 842 #. translators: %s: registration URL 843 #: smstunnel.php:615 844 #, php-format 845 msgid "Don't have an account? <a href=\"%s\" target=\"_blank\">Register</a>" 846 msgstr "" 847 826 848 #: smstunnel.php:632 827 msgid "Password"828 msgstr ""829 830 #: smstunnel.php:633831 msgid "Login"832 msgstr ""833 834 #. translators: %s: registration URL835 #: smstunnel.php:636836 #, php-format837 msgid "Don't have an account? <a href=\"%s\" target=\"_blank\">Register</a>"838 msgstr ""839 840 #: smstunnel.php:653841 849 msgid "Optional. Specify a device ID to use for sending SMS. Leave empty to use any available device." 842 850 msgstr "" 843 851 844 #: smstunnel.php:6 60852 #: smstunnel.php:639 845 853 msgid "General plugin settings." 846 854 msgstr "" 847 855 848 856 #. translators: %s: site locale code 849 #: smstunnel.php:6 72857 #: smstunnel.php:651 850 858 #, php-format 851 859 msgid "Site default (%s)" 852 860 msgstr "" 853 861 854 #: smstunnel.php:6 83862 #: smstunnel.php:662 855 863 msgid "Select the language for SMS messages. Default uses the site language." 856 864 msgstr "" 857 865 858 #: smstunnel.php:6 90866 #: smstunnel.php:669 859 867 msgid "Add SMS-based two-factor authentication. Users need a phone number in their profile." 860 868 msgstr "" 861 869 862 #: smstunnel.php:6 99870 #: smstunnel.php:678 863 871 msgid "Enable SMS 2FA for WordPress login (wp-login.php)" 864 872 msgstr "" 865 873 874 #: smstunnel.php:687 875 msgid "Allow login without 2FA when SMS server is unavailable" 876 msgstr "" 877 878 #: smstunnel.php:688 879 msgid "Security note: When enabled, users can login without 2FA if the SMS server cannot be reached. This prevents lockouts but reduces security." 880 msgstr "" 881 882 #: smstunnel.php:697 883 msgid "Allow users to remember this device" 884 msgstr "" 885 886 #: smstunnel.php:698 887 msgid "Users can skip 2FA on trusted devices. Device trust is based on browser and IP address." 888 msgstr "" 889 890 #: smstunnel.php:707 891 msgid "days" 892 msgstr "" 893 866 894 #: smstunnel.php:708 867 msgid "Allow login without 2FA when SMS server is unavailable"868 msgstr ""869 870 #: smstunnel.php:709871 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:718875 msgid "Allow users to remember this device"876 msgstr ""877 878 #: smstunnel.php:719879 msgid "Users can skip 2FA on trusted devices. Device trust is based on browser and IP address."880 msgstr ""881 882 #: smstunnel.php:728883 msgid "days"884 msgstr ""885 886 #: smstunnel.php:729887 895 msgid "How long a device stays trusted before requiring 2FA again." 888 896 msgstr "" 889 897 890 #: smstunnel.php:7 46898 #: smstunnel.php:725 891 899 msgid "Select which user roles require 2FA." 892 900 msgstr "" 893 901 894 #: smstunnel.php:7 55902 #: smstunnel.php:734 895 903 msgid "minutes" 896 904 msgstr "" 897 905 898 #: smstunnel.php:7 66906 #: smstunnel.php:745 899 907 msgid "digits" 900 908 msgstr "" 901 909 902 #: smstunnel.php:775 910 #: smstunnel.php:754 911 #: smstunnel.php:2290 912 #: smstunnel.php:2755 913 msgid "Your {site_name} verification code is: {code}. Valid for {expiry} minutes." 914 msgstr "" 915 916 #: smstunnel.php:757 917 msgid "Placeholders: {code}, {site_name}, {expiry}" 918 msgstr "" 919 920 #: smstunnel.php:764 921 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." 922 msgstr "" 923 924 #: smstunnel.php:785 925 msgid "E2E Encryption Active" 926 msgstr "" 927 928 #: smstunnel.php:789 929 #: smstunnel.php:1415 930 msgid "Fingerprint:" 931 msgstr "" 932 933 #: smstunnel.php:790 934 msgid "Paired:" 935 msgstr "" 936 937 #: smstunnel.php:791 938 msgid "Format:" 939 msgstr "" 940 941 #: smstunnel.php:791 942 msgid "Hybrid: texts of any length, in any alphabet" 943 msgstr "" 944 945 #: smstunnel.php:791 946 msgid "RSA only: short texts" 947 msgstr "" 948 949 #: smstunnel.php:794 950 msgid "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." 951 msgstr "" 952 953 #: smstunnel.php:796 954 msgid "All SMS messages are encrypted before leaving WordPress." 955 msgstr "" 956 957 #: smstunnel.php:797 958 #: smstunnel.php:1420 959 msgid "Remove E2E Pairing" 960 msgstr "" 961 962 #: smstunnel.php:802 963 msgid "Pair your phone to enable end-to-end encryption. Messages will be encrypted before leaving WordPress." 964 msgstr "" 965 966 #: smstunnel.php:805 967 #: smstunnel.php:1412 968 msgid "Start E2E Pairing" 969 msgstr "" 970 971 #: smstunnel.php:832 972 msgid "Test Connection" 973 msgstr "" 974 975 #: smstunnel.php:835 976 msgid "Test API Connection" 977 msgstr "" 978 979 #: smstunnel.php:840 980 msgid "Save Settings" 981 msgstr "" 982 983 #: smstunnel.php:858 984 msgid "Send a Test SMS" 985 msgstr "" 986 987 #: smstunnel.php:862 988 #: smstunnel.php:2055 989 #: smstunnel.php:2798 990 msgid "Phone Number" 991 msgstr "" 992 993 #: smstunnel.php:865 994 msgid "Use E.164 format (e.g., +40712345678)" 995 msgstr "" 996 997 #: smstunnel.php:871 998 msgid "Enter your message..." 999 msgstr "" 1000 1001 #: smstunnel.php:900 1002 #: smstunnel.php:1468 1003 msgid "Phone and message are required." 1004 msgstr "" 1005 1006 #: smstunnel.php:901 1007 #: smstunnel.php:2106 1008 #: smstunnel.php:2141 1009 msgid "Sending..." 1010 msgstr "" 1011 1012 #: smstunnel.php:902 1013 #: smstunnel.php:1401 1014 msgid "Request failed." 1015 msgstr "" 1016 1017 #: smstunnel.php:964 1018 msgid "All" 1019 msgstr "" 1020 1021 #: smstunnel.php:970 1022 msgid "Sent" 1023 msgstr "" 1024 1025 #: smstunnel.php:976 1026 msgid "Failed" 1027 msgstr "" 1028 1029 #: smstunnel.php:982 1030 msgid "Pending" 1031 msgstr "" 1032 1033 #: smstunnel.php:991 1034 msgid "ID" 1035 msgstr "" 1036 1037 #: smstunnel.php:995 1038 msgid "Type" 1039 msgstr "" 1040 1041 #: smstunnel.php:996 1042 msgid "Source" 1043 msgstr "" 1044 1045 #: smstunnel.php:997 1046 msgid "Date" 1047 msgstr "" 1048 1049 #: smstunnel.php:1003 1050 msgid "No SMS messages found." 1051 msgstr "" 1052 1053 #: smstunnel.php:1096 1054 msgid "Inbox - Received SMS" 1055 msgstr "" 1056 1057 #: smstunnel.php:1105 1058 msgid "Filter by phone:" 1059 msgstr "" 1060 1061 #: smstunnel.php:1107 1062 msgid "Filter" 1063 msgstr "" 1064 1065 #: smstunnel.php:1109 1066 msgid "Clear" 1067 msgstr "" 1068 1069 #: smstunnel.php:1114 1070 msgid "Refresh" 1071 msgstr "" 1072 1073 #. translators: %d: number of messages 1074 #: smstunnel.php:1119 1075 #, php-format 1076 msgid "Total: %d messages" 1077 msgstr "" 1078 1079 #: smstunnel.php:1127 1080 msgid "From" 1081 msgstr "" 1082 1083 #: smstunnel.php:1129 1084 msgid "Device" 1085 msgstr "" 1086 1087 #: smstunnel.php:1130 1088 msgid "Received" 1089 msgstr "" 1090 1091 #: smstunnel.php:1136 1092 msgid "No received messages found." 1093 msgstr "" 1094 1095 #: smstunnel.php:1162 1096 msgid "[E2E Encrypted - Viewable only in mobile app]" 1097 msgstr "" 1098 1099 #: smstunnel.php:1235 1100 msgid "Received texts stay private" 1101 msgstr "" 1102 1103 #: smstunnel.php:1236 1104 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." 1105 msgstr "" 1106 1107 #: smstunnel.php:1237 1108 msgid "Texts show up there once \"Sync received texts\" is turned on in the SMSTunnel app." 1109 msgstr "" 1110 1111 #: smstunnel.php:1239 1112 msgid "Open Messages in your dashboard" 1113 msgstr "" 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 1118 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." 1119 msgstr "" 1120 1121 #: smstunnel.php:1247 1122 msgid "Apps" 1123 msgstr "" 1124 1125 #: smstunnel.php:1248 1126 msgid "Allow reading received texts" 1127 msgstr "" 1128 1129 #: smstunnel.php:1262 1130 msgid "The API key saved on this site is no longer valid" 1131 msgstr "" 1132 1133 #: smstunnel.php:1263 1134 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." 1135 msgstr "" 1136 1137 #: smstunnel.php:1276 1138 msgid "This site is not linked to SMSTunnel yet." 1139 msgstr "" 1140 1141 #: smstunnel.php:1287 1142 msgid "Could not reach smstunnel.io" 1143 msgstr "" 1144 1145 #: smstunnel.php:1288 1146 msgid "Check that this site can connect to the internet, then try again in a few minutes." 1147 msgstr "" 1148 1149 #: smstunnel.php:1290 1150 msgid "smstunnel.io is temporarily unavailable" 1151 msgstr "" 1152 1153 #: smstunnel.php:1291 1154 #: smstunnel.php:1300 1155 msgid "Please try again in a few minutes." 1156 msgstr "" 1157 1158 #: smstunnel.php:1299 1159 msgid "Could not load received texts" 1160 msgstr "" 1161 1162 #: smstunnel.php:1318 1163 msgid "Try again" 1164 msgstr "" 1165 1166 #: smstunnel.php:1332 1167 msgid "Developer Documentation" 1168 msgstr "" 1169 1170 #: smstunnel.php:1335 1171 msgid "Sending SMS from Your Code" 1172 msgstr "" 1173 1174 #: smstunnel.php:1336 1175 msgid "Use the global function to send SMS from anywhere in your WordPress code:" 1176 msgstr "" 1177 1178 #: smstunnel.php:1354 1179 msgid "Using Action Hook" 1180 msgstr "" 1181 1182 #: smstunnel.php:1400 1183 msgid "Testing..." 1184 msgstr "" 1185 1186 #: smstunnel.php:1402 1187 msgid "Connecting..." 1188 msgstr "" 1189 1190 #: smstunnel.php:1403 1191 msgid "Connected! Reloading..." 1192 msgstr "" 1193 1194 #: smstunnel.php:1404 1195 msgid "Connection failed" 1196 msgstr "" 1197 1198 #: smstunnel.php:1405 1199 #: smstunnel.php:2109 1200 #: smstunnel.php:2144 1201 msgid "Verifying..." 1202 msgstr "" 1203 1204 #: smstunnel.php:1406 1205 #: smstunnel.php:1898 1206 #: smstunnel.php:1972 1207 msgid "Connected successfully!" 1208 msgstr "" 1209 1210 #: smstunnel.php:1407 1211 msgid "Verification failed" 1212 msgstr "" 1213 1214 #: smstunnel.php:1408 1215 msgid "Starting..." 1216 msgstr "" 1217 1218 #: smstunnel.php:1409 1219 msgid "Waiting for phone..." 1220 msgstr "" 1221 1222 #: smstunnel.php:1410 1223 msgid "Open SMSTunnel app → Settings → Encryption Settings → Scan E2E QR" 1224 msgstr "" 1225 1226 #: smstunnel.php:1411 1227 msgid "Cancel Pairing" 1228 msgstr "" 1229 1230 #: smstunnel.php:1413 1231 msgid "E2E Pairing Complete!" 1232 msgstr "" 1233 1234 #: smstunnel.php:1416 1235 msgid "Refreshing page..." 1236 msgstr "" 1237 1238 #: smstunnel.php:1417 1239 msgid "Pairing expired. Please try again." 1240 msgstr "" 1241 1242 #: smstunnel.php:1418 1243 msgid "Are you sure you want to remove E2E encryption? Messages will no longer be encrypted." 1244 msgstr "" 1245 1246 #: smstunnel.php:1419 1247 msgid "Removing..." 1248 msgstr "" 1249 1250 #: smstunnel.php:1474 1251 msgid "SMS sent successfully!" 1252 msgstr "" 1253 1254 #. translators: %1$d: total devices, %2$d: online devices 1255 #: smstunnel.php:1502 1256 #, php-format 1257 msgid "Connected! %1$d device(s) found, %2$d online." 1258 msgstr "" 1259 1260 #: smstunnel.php:1543 1261 msgid "API key verified successfully!" 1262 msgstr "" 1263 1264 #: smstunnel.php:1550 1265 #: smstunnel.php:1594 1266 #: smstunnel.php:1650 1267 msgid "Connection failed: " 1268 msgstr "" 1269 1270 #: smstunnel.php:1552 1271 msgid "Verification failed. Status: " 1272 msgstr "" 1273 1274 #: smstunnel.php:1607 1275 msgid "Failed to start pairing" 1276 msgstr "" 1277 1278 #: smstunnel.php:1624 1279 msgid "Token is required." 1280 msgstr "" 1281 1282 #: smstunnel.php:1691 1283 msgid "Pairing expired or not found." 1284 msgstr "" 1285 1286 #: smstunnel.php:1693 1287 msgid "Failed to check status" 1288 msgstr "" 1289 1290 #: smstunnel.php:1739 1291 msgid "Invalid OAuth state. Please try again." 1292 msgstr "" 1293 1294 #: smstunnel.php:1826 1295 msgid "Security check failed." 1296 msgstr "" 1297 1298 #: smstunnel.php:1855 1299 msgid "Invalid authentication data." 1300 msgstr "" 1301 1302 #: smstunnel.php:1902 1303 msgid "Authentication failed." 1304 msgstr "" 1305 1306 #: smstunnel.php:1923 1307 msgid "Please enter email and password." 1308 msgstr "" 1309 1310 #: smstunnel.php:1976 1311 msgid "Invalid email or password." 1312 msgstr "" 1313 1314 #: smstunnel.php:2033 1315 #: smstunnel.php:2065 1316 msgid "Verification Code" 1317 msgstr "" 1318 1319 #. translators: %d: number of days 1320 #: smstunnel.php:2044 1321 #, php-format 1322 msgid "Remember this device for %d days" 1323 msgstr "" 1324 1325 #: smstunnel.php:2060 1326 #: smstunnel.php:2107 1327 #: smstunnel.php:2142 1328 msgid "Send Verification Code" 1329 msgstr "" 1330 1331 #: smstunnel.php:2070 1332 #: smstunnel.php:2110 1333 #: smstunnel.php:2145 1334 msgid "Verify Code" 1335 msgstr "" 1336 1337 #: smstunnel.php:2076 1338 #: smstunnel.php:2112 1339 msgid "Skip - I don't have my phone" 1340 msgstr "" 1341 1342 #: smstunnel.php:2079 1343 msgid "You will need to add your phone number later from your profile." 1344 msgstr "" 1345 1346 #: smstunnel.php:2097 1347 #: smstunnel.php:2132 1348 msgid "Checking..." 1349 msgstr "" 1350 1351 #: smstunnel.php:2098 1352 #: smstunnel.php:2133 1353 msgid "Verifying credentials..." 1354 msgstr "" 1355 1356 #: smstunnel.php:2099 1357 #: smstunnel.php:2134 1358 msgid "Please enter the verification code" 1359 msgstr "" 1360 1361 #: smstunnel.php:2100 1362 #: smstunnel.php:2135 1363 msgid "Request timeout. Please try again." 1364 msgstr "" 1365 1366 #: smstunnel.php:2101 1367 #: smstunnel.php:2136 1368 msgid "Connection error. Please try again." 1369 msgstr "" 1370 1371 #: smstunnel.php:2102 1372 #: smstunnel.php:2137 1373 msgid "Server error. Please try again." 1374 msgstr "" 1375 1376 #: smstunnel.php:2103 1377 #: smstunnel.php:2138 1378 msgid "Logging in..." 1379 msgstr "" 1380 1381 #: smstunnel.php:2104 1382 #: smstunnel.php:2139 1383 msgid "SMS server unavailable - logging in without 2FA" 1384 msgstr "" 1385 1386 #: smstunnel.php:2105 1387 #: smstunnel.php:2140 1388 msgid "Please enter your phone number." 1389 msgstr "" 1390 1391 #: smstunnel.php:2108 1392 #: smstunnel.php:2143 1393 msgid "Please enter the verification code." 1394 msgstr "" 1395 1396 #: smstunnel.php:2111 1397 #: smstunnel.php:2146 1398 msgid "Skipping..." 1399 msgstr "" 1400 1401 #: smstunnel.php:2113 1402 #: smstunnel.php:2148 1403 msgid "Error. Please try again." 1404 msgstr "" 1405 1406 #: smstunnel.php:2147 1407 msgid "Skip - I do not have my phone" 1408 msgstr "" 1409 1410 #: smstunnel.php:2164 1411 msgid "Username and password required." 1412 msgstr "" 1413 1414 #: smstunnel.php:2170 1415 msgid "Invalid username or password." 1416 msgstr "" 1417 1418 #: smstunnel.php:2180 1419 msgid "SMS service unavailable - logging in without 2FA" 1420 msgstr "" 1421 1422 #: smstunnel.php:2225 1423 msgid "Phone number required for 2FA. Please enter your phone number." 1424 msgstr "" 1425 1426 #: smstunnel.php:2244 1427 msgid "Invalid phone - 2FA bypassed" 1428 msgstr "" 1429 1430 #: smstunnel.php:2247 1431 msgid "Invalid phone number format." 1432 msgstr "" 1433 1434 #. translators: %s: masked phone number 1435 #: smstunnel.php:2272 1436 #, php-format 1437 msgid "Code already sent to %s" 1438 msgstr "" 1439 1440 #: smstunnel.php:2282 1441 #: smstunnel.php:2367 1442 #: smstunnel.php:2370 1443 msgid "Too many requests, please try again later." 1444 msgstr "" 1445 1446 #. translators: %s: masked phone number 1447 #: smstunnel.php:2308 1448 #, php-format 1449 msgid "Code sent to %s" 1450 msgstr "" 1451 1452 #: smstunnel.php:2313 1453 msgid "Failed to send code." 1454 msgstr "" 1455 903 1456 #: 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." 1457 msgid "SMS unavailable - 2FA bypassed" 1458 msgstr "" 1459 1460 #: smstunnel.php:2347 1461 #: smstunnel.php:2417 1462 #: smstunnel.php:2475 1463 msgid "Session expired. Please try logging in again." 1464 msgstr "" 1465 1466 #: smstunnel.php:2353 1467 msgid "Invalid phone number format. Please use international format (e.g., +40712345678)." 1468 msgstr "" 1469 1470 #: smstunnel.php:2358 1471 msgid "Premium-rate numbers are not allowed. Please use a standard mobile number." 1472 msgstr "" 1473 1474 #. translators: %1$s: site name, %2$s: verification code, %3$d: minutes 1475 #: smstunnel.php:2386 1476 #, php-format 1477 msgid "Your %1$s phone verification code is: %2$s. Valid for %3$d minutes." 1416 1478 msgstr "" 1417 1479 1418 1480 #. 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 1466 1482 #, php-format 1467 1483 msgid "Verification code sent to %s" 1468 1484 msgstr "" 1469 1485 1470 #: smstunnel.php:24 381486 #: smstunnel.php:2401 1471 1487 msgid "Failed to send verification code." 1472 1488 msgstr "" 1473 1489 1474 #: smstunnel.php:24 621490 #: smstunnel.php:2425 1475 1491 msgid "Verification code expired. Please request a new code." 1476 1492 msgstr "" 1477 1493 1478 #: smstunnel.php:24 731494 #: smstunnel.php:2436 1479 1495 msgid "Too many attempts. Please request a new code." 1480 1496 msgstr "" 1481 1497 1482 #: smstunnel.php:24 781498 #: smstunnel.php:2441 1483 1499 msgid "Invalid verification code." 1484 1500 msgstr "" 1485 1501 1486 #: smstunnel.php:24 961502 #: smstunnel.php:2459 1487 1503 msgid "Phone verified successfully! You can now log in." 1488 1504 msgstr "" 1489 1505 1490 #: smstunnel.php:2 5221506 #: smstunnel.php:2485 1491 1507 msgid "Phone setup skipped. Please add your phone number from your profile." 1492 1508 msgstr "" 1493 1509 1494 #: smstunnel.php:2 7251510 #: smstunnel.php:2688 1495 1511 msgid "<strong>Error:</strong> Verification code expired. Please try again." 1496 1512 msgstr "" 1497 1513 1498 #: smstunnel.php:2 7361514 #: smstunnel.php:2699 1499 1515 msgid "<strong>Error:</strong> Too many attempts. Please request a new code." 1500 1516 msgstr "" 1501 1517 1502 #: smstunnel.php:27 411518 #: smstunnel.php:2704 1503 1519 msgid "<strong>Error:</strong> Invalid verification code." 1504 1520 msgstr "" 1505 1521 1506 #: smstunnel.php:27 611522 #: smstunnel.php:2724 1507 1523 msgid "<strong>2FA Required:</strong> Please enter the verification code sent to your phone." 1508 1524 msgstr "" 1509 1525 1510 #: smstunnel.php:27 761526 #: smstunnel.php:2739 1511 1527 msgid "<strong>Error:</strong> No phone number configured. Please reload and complete phone setup." 1512 1528 msgstr "" 1513 1529 1514 #: smstunnel.php:27 811530 #: smstunnel.php:2744 1515 1531 msgid "<strong>Error:</strong> Invalid phone number format. Please update your phone in your profile." 1516 1532 msgstr "" 1517 1533 1518 1534 #. translators: %1$s: masked phone number, %2$s: code prefix 1519 #: smstunnel.php:2 8091535 #: smstunnel.php:2772 1520 1536 #, php-format 1521 1537 msgid "<strong>2FA Required:</strong> Verification code sent to %1$s. Enter code with prefix <strong>%2$s</strong>." … … 1523 1539 1524 1540 #. translators: %s: error message 1525 #: smstunnel.php:2 8221541 #: smstunnel.php:2785 1526 1542 #, php-format 1527 1543 msgid "<strong>Error:</strong> Failed to send verification code: %s" 1528 1544 msgstr "" 1529 1545 1530 #: smstunnel.php:2 8321546 #: smstunnel.php:2795 1531 1547 msgid "SMSTunnel 2FA" 1532 1548 msgstr "" 1533 1549 1534 #: smstunnel.php:28 411550 #: smstunnel.php:2804 1535 1551 msgid "Phone number in international format (e.g., +40712345678). Used for 2FA verification." 1536 1552 msgstr "" -
smstunnel/trunk/readme.txt
r3793052 r3808151 5 5 Tested up to: 7.1 6 6 Requires PHP: 7.4 7 Stable tag: 1.0.1 87 Stable tag: 1.0.19 8 8 License: GPLv2 or later 9 9 License URI: https://www.gnu.org/licenses/gpl-2.0.html … … 43 43 * Form Notifications - Built-in texts for Fluent Forms and Forminator: to you, and to the person who filled in the form 44 44 * 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 site45 * End-to-End Encryption - Optional; texts of any length, in any alphabet, are encrypted for your phone before they leave your site 46 46 47 47 == Installation == … … 98 98 99 99 == 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. 100 104 101 105 = 1.0.18 = … … 209 213 == Upgrade Notice == 210 214 215 = 1.0.19 = 216 Encrypted texts of any length, in any alphabet, now go out whenever your phone's SMSTunnel app is 1.0.8 or newer. 217 211 218 = 1.0.18 = 212 219 Numbers 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 4 4 * Plugin URI: https://smstunnel.io/integrations/smstunnel/ 5 5 * 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.1 86 * Version: 1.0.19 7 7 * Author: SMSTunnel.io 8 8 * Author URI: https://smstunnel.io … … 23 23 24 24 // Define plugin constants 25 define('SMSTUNNEL_VERSION', '1.0.1 8');25 define('SMSTUNNEL_VERSION', '1.0.19'); 26 26 define('SMSTUNNEL_PLUGIN_DIR', plugin_dir_path(__FILE__)); 27 27 define('SMSTUNNEL_PLUGIN_URL', plugin_dir_url(__FILE__)); … … 312 312 register_setting('smstunnel_settings', 'smstunnel_device_public_key', array('sanitize_callback' => 'sanitize_text_field')); 313 313 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. 319 316 320 317 // API Section … … 453 450 'smstunnel_e2e_section' 454 451 ); 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';473 452 } 474 453 … … 798 777 $device_name = $e2e_key['device_name'] ?: __('Phone', 'smstunnel'); 799 778 $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; 800 781 801 782 echo '<div style="padding: 15px; background: #e7f5e7; border: 1px solid #46b450; border-radius: 8px; max-width: 450px;">'; … … 808 789 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>'; 809 790 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>'; 810 792 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 } 811 796 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>'; 812 797 echo '<button type="button" id="smstunnel-remove-e2e" class="button" style="margin-top: 12px; color: #a00;">' . esc_html__('Remove E2E Pairing', 'smstunnel') . '</button>'; … … 826 811 827 812 // 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 the835 * message + RSA-OAEP for the AES key). This removes the ~245 byte RSA size836 * 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 <?php850 813 } 851 814 -
smstunnel/trunk/uninstall.php
r3780179 r3808151 47 47 'smstunnel_e2e_key', 48 48 '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 50 50 'smstunnel_device_public_key', 51 51 'smstunnel_server_public_key',
Note:
See TracChangeset
for help on using the changeset viewer.