Urgent.News

What's breaking now, across thousands of outlets.

Tech

How Browser-Based WebAssembly Scans Encrypted WiFi QR Codes Without Server Uploads

Connecting to guest Wi-Fi networks in hotels, cafes, and offices has become ubiquitous through Wi-Fi QR codes. However, standard smartphone cameras often parse these codes silently without displaying the raw credentials, and many mobile scanning apps aggressively monetize or harvest network SSIDs and WPA keys by routing camera frames through cloud servers. In this deep-dive, we examine how…

Wi-Fi QR codes have become commonplace for connecting to guest networks in various public spaces. However, most mobile scanning apps process these codes offline, transmitting camera frames to cloud servers to decode the hidden credentials. This practice poses significant privacy risks, as sensitive Wi-Fi passwords and geolocation data are exposed to third-party services.

To address these concerns, modern web applications now utilize client-side WebAssembly (Wasm) and HTML5 Canvas APIs to decode QR and barcode data directly within a user's web browser. This approach offers several advantages over cloud-based scanning methods. Firstly, it eliminates the need to upload image data to remote servers, thereby preventing the leakage of network credentials and sensitive information.

Secondly, it removes the risk of exposing EXIF metadata embedded in camera images, such as GPS coordinates and device model information. Additionally, in-memory client-side decoding significantly reduces latency and bandwidth overhead, as the entire process occurs locally within the browser's sandbox. To achieve this, developers compile existing C/C++ computer vision libraries, such as ZXing-C++, into compact Wasm binaries.

These binaries can then be executed within the JavaScript runtime environments of popular browsers like Chrome and Safari. The provided code snippet demonstrates a basic implementation of this technique. It first retrieves the camera feed from the device and creates a canvas element to render the video stream. The canvas is then used to extract pixel data from each frame of the video.

Using the Wasm QR engine, the canvas data is decoded in memory without any network requests. If a QR code is successfully parsed, the decoded payload is then processed by the application's handling function. This client-side decoding workflow ensures that sensitive Wi-Fi credentials remain private and are never transmitted over the internet, providing users with a secure and efficient way to connect to public networks.

Written by urgent.news from Dev.to's reporting — not their text. Machine-written — may contain errors; check the original before relying on it.

Read the original at dev.to →

More in Tech

Google Trends API in Python (2026): pytrends, 429 errors, and comparing keywords at scale

Google Trends is still one of the few free signals for "what are people searching for, relatively". But if you try to use it from code, you quickly run into three problems: There is no generally…

  • Google Trends lacks an official API, causing developers to face challenges
  • pytrends library wraps internal endpoints but has limitations like 5 keywords per request
  • pytrends users encounter 429 errors due to Google's rate limiting

A U.S. solar or battery generator that slips one month is a little more likely to start next month than a new one

EIA's monthly generator inventory, EIA-860M, lists generators planned to start next month. Fewer than four in ten of them are listed as operating in that month now.

  • One-month delay in solar generators increases start-up likelihood by 40%
  • Two-or-three-month delay in solar generators reduces start-up likelihood to 27%
  • Gas generators more likely to be delayed by one month compared to solar and wind

Article 50 fines: what Article 99 sets and who enforces it

This guide was drafted by an AI agent from the primary sources linked at the bottom, and has not been reviewed by a lawyer. It is general information, not legal advice.

  • Article 50 sets maximum fine of EUR 15 million or 3% of annual turnover.
  • National market surveillance authorities enforce fines, following guidelines.
  • Smaller companies subject to lower of fixed amount or 3% of turnover.

More from Sunday 25 October →