Guest WiFi using a QR code
blog.jgc.org
blog.jgc.org
WIFI:T:WPA;S:{ssid};P:{password};;
Can generate these on Linux with the qrencode program.Wikipedia has information on this https://en.wikipedia.org/wiki/QR_code#Joining_a_Wi%E2%80%91F...
Section of the Wikipedia article:
Joining a Wi‑Fi network
By specifying the SSID, encryption type, password/passphrase, and if the SSID is hidden or not, mobile device users can quickly scan and join networks without having to manually enter the data. Note that this technique is valid for specifying only static SSID passwords (i.e. PSK); dynamic user credentials (i.e. Enterprise/802.1x) cannot be encoded in this manner.
The format of the encoded string is:
WIFI:S:<SSID>;T:<WPA|WEP|>;P:<password>;H:<true|false|>;
Order of fields does not matter. Special characters """ (quotation mark), ";" (semicolon), "," (comma), ":" (colon) and "\" (backslash) should be escaped with a backslash ("\") as in MECARD encoding. For example, if an SSID were "foo;bar\baz", with quotation marks part of the literal SSID name itself, this would be encoded as: WIFI:S:\"foo\;bar\\baz\";;WIFI:t=wpa&s=My%20Network&p=secret%20word
would have been much better.
So I think the difference is small. QR codes can contain quite a bit more information than what's needed for WIFI name and password.
If you're using Network Manager, you can also just run this command!
nmcli dev wifi show-password
You get the password as text, and a nice in-terminal QR code.Works for emoji in both the SSID and Password.
Visitor: What's your wifi password?
Me: No password needed! We have a cool QR code you can scan that will auto-join you!
Visitor: Oh cool, how do I use a QR code? Do I need an app?
Me: Nope, just point your camera at it.
Visitor: Like .. .take a picture of it? And then what, do I...
Me: No just point your camera at it.
Visitor: Ok let me try it ... oh cool it's prompting me to join your wifi network? what do I do now
Me: Yes Yes, just proceed, that's what it's for.
Visitor: That's soo cool, thanks.
Vs
Visitor: What's your wifi password?
Me: ShinyTortoise78
Nevermind the fact that my friends group tends to be about 50% passwords of the type you used and the other 50% of them use a randomly generated one from a pw generator or add enough random capitalization of things like family member names to make it awkward. More often than not, I end up handing them my device to type it themselves.
The QR code seems a much simpler solution once people know how to use them. Thanks to things like electronic menus at restaurants due to Covid more folks than you might realize actually do know what to do. If grandma can learn how to use a QR code to access the high school band concert program online (true story), then anyone can.
Teach a man to fish.
GUEST WIFI
SSID: AAA Guest
Password: squirrels2I keep teaching my family members to fish, and they keep asking me for fish.
Me: it's the entire alphabet in order.
Visitor: I don't want to type 20+ obnoxious letters.
Me: can I interest you in a QR code?
I recently did this with a few (some more tech-savvy, some less tech-savvy) people and it seemed to blow their mind. I don't know if this is a commonly known feature.
"Uhh English is my 3rd language and I don't know how to spell tortus. is there a QR code I can scan?"
"What's your wifi password?"
"It's written right there on the fridge"
password123(I have a horrible short term memory and struggle with short phrases)
When I walk back to my desk, my phone locks (due to time out or intentional habit of keeping it locked). Then I have to tap buttons to unlock phone, launch the photo app, and find the image I just took. Then I have to spend time later to delete the image.
iOS has OCR on images. I can copy and paste the password from the photo, but still not as efficient as no or simple password, since I must still deal with locking.
Perhaps, this is better on android.
And how would that constitute lock-in anyway?
https://images.macrumors.com/t/3REfPfn3TRhO5oOFqVsyqdR9qcI=/...
Also, for the OP, sounds like it's time to put the kids on the guest network.
I have considered that, for sure.
A: I don't know it's written on the back of the modem.
<finds modem after 10 minutes on top of a dusty cabinet>
<dictates code which is in hexadecimal to someone typing>
And - of course it was locked for admin - well - not for long, the technican who installed it gave me the password after we chatted for awhile. Admitedly, I cannot change the PW he gave me, and at some point if they remotely update it, it will stop working.
Me: Is it doing anything? What did you do?
Vistor: No. I pointed my phone at it like you said. Then I took a picture.
Me: What app are you using?
Visitor: The photo app I always use.
Me: Can you be more specific?
Visitor (showing where the icon is): That one. I always use it.
Me: That one sucks. Do you have any others?
Visitor: I don't know. There's photos in the Facebook app. Should I try that?
Me (grabs a piece of paper from the fridge, exasperated): Here. This is my wifi info. Use the 5ghz one. If that doesn't work, try the other one.
Vistor: Oh, ok, whatever. Thanks.
I think there must be some sort of crazy interference going on because I can literally be sitting right next to the router and 5ghz has about 5k of bandwidth available.
Nope. I know people first-hand who don't. Hell, even I don't know how the average person does it. My own phone's camera app doesn't detect them so I had to find a random 3rd party app and trust that it's not stealing the info. In fact I'm not sure I've ever used the stock camera app on any phone to scan a QR code before. For some folks it might be "press Camera and scan", but for others it's way harder than it looks.
My guests doesn't ask for the WiFi pass, they see the QR hanging and ask "what is this QR for?", "It connects to my WiFi", and they immediately try it (succesfully) out of curiosity, "It's cool, how is it done?". The don't understand the magic behind, but don't need a guide to use it.
In fact, most of the QR codes even at the places that had hem are gone now.
Guest: “What’s your wifi network?”
Me: “It’s XXXX”
Guest: selects network
Me: Prompt on my device “Would you like to share your wifi password with Guest” . Selects Yes
Guest: “oh wow I’m connected. Thanks!”
Now that only works if I am present. But it works wonderfully. It should be standardised across platforms.
You also need to be physically close to each other and mutual contacts.
in the last few months, i've had visitors at events ask why we didn't have a QR code posted because they'd prefer that to typing in the name of our website.
I don’t mind the little back and forth sometimes. Consequently, in this scenario the knowledge of how to use a QR code will come in handy for your guest.
EDIT - I had an idea that I'm currently working through that I like but am a little stuck so taking a break before I revisit. TLDR is to use an ATTINY85 to auto-"type" the password in for folks who bring a laptop and can't scan the QR code. I wrote the Python code to generate the .ino script that would actually do the writing, but I'm having a little bit of trouble getting micronucleus to write the script to the ATTINY without an un/re plug. You can see the WIP on my digispark branch in that repo
(QR code error correction is usually enough to let you just knock out part of it and put the text right there.)
1. Have the display show a 5-digit PIN (TOTP or something that changes every minute or few)
2. Let anyone connect to your network, if they go to a browser window it will show the capture portal
3. Enter the 5-digit PIN and press "enter" and the page will show the 30-digit password so the user can copy+paste
4. User pastes password into WiFi screen and logs in
Make sure to rate-limit this endpoint to prevent random PIN attacks.
Thanks for sharing, this sort of overkill is my favorite kind~ Cheers @koins!
https://www.etsy.com/shop/ligninandlight?section_id=28828952
Instead, could also make an e-paper device for this. Perhaps it would work on badgerOS?
Otherwise just buying those picture viewers and setting a qr image would be easiest.
I tried with HTML href on my mac. It didn't work. Maybe it'd work on phones.
How would you use a dynamic link like HTTPS URL shortener if you're trying to achieve internet access? You could overcomplicate it with another AP which only works with QR code.
A colleague once painted a QR code, kinda cool its possible and it worked, but its no magic. Its just static content. If you want it to be dynamic, e-ink is perfect for this purpose. It doesn't require electricity, only if you change the content. So if it is say a Raspberry Pi Zero, it could be powered off, and only get powered on when required (even the e-ink screen itself could be detached).
I know they use captive portals a lot for this purpose but I don't see how say WPA2/3 Enterprise could not work for this.
I mean, you're still giving them the password, just in machine readable format.
But I sadly know neither svg enough to think up an alternative approach, or a JS/TS dev enough to see if there are other libraries.
See: <https://twitter.com/adambowie/status/1521078234057695233> for context
Already linked by people in this topic https://en.wikipedia.org/wiki/QR_code#Joining_a_Wi%E2%80%91F...
>All too often you see what should be simple textual data wrapped in this obtuse form which only specific machines can read.
>See: <https://twitter.com/adambowie/status/1521078234057695233> for context
This is misuse of QR code; QR codes should be used to encode large data or some other clunky data that is hard for people to process that's why it is easier to look up such data/information with QR code and process/read it digitally. After all you have a camera in your pocket and a preinstalled QR code scanner(at least all new Android phones have). The main use case of QR codes that I see is simply linking you to a website. For example your favorite food brand links you to their website to explore their offering.
>Text and a QR code can be read by everyone.
Yea I agree with you that both plain text and a QR code should be shared so people can use what suits them the best at that particular moment.
I've forgotten the tool used but I had a QR-Code for the guest Wi-Fi for a very long time. These days, people don't really care as the Internet speed on their phones are pretty fast enough and the cost is very cheap (India).
https://avm.de/ratgeber/wlan-zugang-teilen-mit-qr-codes-geht...
Edit: English: https://en.avm.de/guide/how-to-share-your-wi-fi-access-with-...
how about use both
My phone has existing connectivity most of the time and it's rare that I need to connect it to wifi. Or that wifi would be preferable over my own 5G (or LTE) data connection.
Not hating, this is neat, but it seems low value. Certainly printing _only_ a QR code feels sub-optmial as it doesn't cover the laptop usecase.
Basically, no step two. Putting a password into a WiFi network is an at-most-once thing.
So, for instance, if I want to use tor, I have an actual tor ap that is normally powered off. I plug in the PoE connection and a bit later I have an SSID that is Tor only.
I also have a "guest users" AP that has no password at all. Plug it in when needed. Unplug when people leave. Shrug.
I use the Ubiquiti frisbee APs that are PoE. Sometimes I insert a "slug"[1] between the switch and the AP which strictly enforces their purpose - like hard locking them to a VPN.
I.e., treat the network as an extension of the Internet, that is, assume it's compromised. Since … it basically is, given the crap hardware ISPs foist upon people.
I have never had an Android phone with the ability to scan QR codes with the "default camera app". The closest I've gotten is taking a picture of the QR code and then going into my pictures and using "Google Lens" to scan the picture for QR codes. Usually I end up downloading a dedicated QR scanner app from the app store, which I have zero confidence will be able to auto-connect me to someone's WiFi.
[1] https://gist.github.com/ianobermiller/9f17f1022bc75c2228d742... [2] https://bl.ocks.org/ianobermiller/raw/9f17f1022bc75c2228d742...
Android also has the option to "share" wifi via a QR code from the WiFi settings menu. It is quick and much easier than reading out the password to someone else.
The only thing I don't love about it is, there's very little user feedback. The person requesting just goes to the wifi password prompt and hopefully this generates the notification for one of their contacts.
Nice when it magically works (you go to wifi, and then someone in the room is like "Hey, dcdc123 wants the wifi password" and you are like "yep," and then it's all sorted), annoying when you are intentionally trying to use it with one particular person.
It would be nice if it showed something like "looking for contacts" "found <NAME>" etc etc.
No need for any special third party tools.
\newcommand*{\SSID}[0]{NETWORK}
\newcommand*{\PASS}[0]{PASSWORD}
\documentclass{letter}
\usepackage{qrcode}
\begin{document}
\begin{center}
\LARGE{``\SSID'' WiFi QR code}
\qrcode[height=5cm]{WIFI:S:\SSID;T:WPA;P:\PASS;H:false;}
\end{center}
\end{document}Only issue is hard coding the password in the shortcut.
Super easy to hand to a visitor that can either scan or type in.
Using a laptop in a café might still be a use case if you don't want to run your phone hot and drain the battery.
We enjoy the cheapest data rates in Europe and certainly cheaper than in the US. Which is kind of weird because in general price level is everything else but low.
IMO it is just easier to display it on a computer screen in a large-sized text and let them type it in themselves, e.g., the 1Password large type show option.
Seeing separate VLAN being mentioned makes me think you are also have the ability to run a temporary additional WiFi network when guests are over as well. That could just use a rotating password with a memorable word scheme to make it easier to type.
These friends are not very technical, and the purpose is that I use their device to fill in the complex password. It would take much longer if I were to spell it out, and its likely they would make typos. By handing me their device, its a sense of trust doing so. In return, I give internet access.
Works for Text Messages too! (=
I made a QR Code for my contact info in a VCard and set it as the home screen of my phone -- when I go to conventions it makes it really easy to connect with people.
There's a lot of cool stuff you can do with QR Codes now. Most of this stuff is 5-10 years old even, but the pandemic really helped educated people to look for QR Codes. Yay, Covid! =P
There are QR code generators that are work entirely client-side, I would trust those much more, or just use a native app.
That said, it is worth including the password below the QR just in case someone's camera is old or playing up (this happened). I also added an NFC sticker for the tech woke.
… too bad I'm with a different monopoly ISP now. Their Wifi just drops you if you are on the 5 GHz bands and transmit anywhere remotely near full throttle. So you have to stay on the 2.4 GHz and weep.
[1] https://www.washingtonpost.com/technology/2021/10/07/are-qr-...
Also, QR codes obfuscate the request that is being sent.
There is an inherent security risk... it is trivial, as the OPs article suggests, to print out a QR code, cover an existing public one, and send people to a phishing site. Unless people are being very careful about what sites they are on, they could easily be scammed.
Of course, it has potential security issues; but no more than your standard sign in a store or boardroom.
If you add the key tag, you can hang it on the wall. Works well with a light-color background, and a dark foreground.
I love how developers are all so lovingly inconsistent. On one hand they swear up and down that binary formats are shite and now human-readable formats are the new thing (or at least that was the story a few years back with various markup languages and json) but now, for those stupid fucking idiot users opaque formats that require a functioning camera line of sight clear to a piece of paper are now IN. Minimized urls are too passe, I suppose?
And it's great too, because scammers and hackers are now dropping QR codes on the ground or leaflets, or placing stickers on the QR codes that dot the landscape (like on public info posters or ads put up in HDBs) so poor folks who have learned that the QR code is how you do things now just load up the QR codes without asking. Again, opaque formats are NOT good for many reasons, ease of hacking/social engineering is one reason obvious reason! Of course you can put a sticker on poster on a url but it's easy to recognize the difference between mysite.com/about and something else vs qr code 1 and qr code 2.
QR codes have redundancy, which makes them resilient in a variety of conditions that plaintext isn't.
Also, you can 'hide' ugly tracking urls in QR codes (e.g. a short-link that lets you count number of scans or update the redirect location).
ALL vendors should be required to have a camera. I have an app that produces a unique QR code for each transaction.
The VENDOR scans MY QR code and REQUESTS for my to PAY them, showing me my receipt for auth on my device.
The only VENDOR QR-read codes should only be for information about the product, menu etc.
-
I used QR codes on product descriptions that led to the product page and lab testing results for said product onto which the physical size of the product was not large enough for pertinent information -- this was for cannabis product company for which I did some contracting labeling...
The upside of this, is that it ran through bitly and I was able to also, included with the QR scan, the geo-loc of the product scan which allowed me to map out the interest of various products based on the scan and location...
QR codes are FANTASTIC, but implemented so poorly...
Would you trust this URL?
Anyway, for here in Singapore, what I'm talking about generally are government websites, which in SG are plentiful and well used. Things like where to find ART kits or information on GST vouchers or things like that. This is information many people are likely to access via a website, and especially trust given it's a gov website. The government often already have nifty, readable urls already for these links, like gowhere.gov.sg/art and so don't need QR codes.
It's more of a cool factor with friends but still pretty convenient. Folks in my age group almost intuitively know how to point a camera / get the results.
A made-up word also works well and even thwarts a dictionary attack (which is a real issue).
GUEST WIFI
SSID: AAA Guest
Password: squirrels2
I should add a QR code to it. :)What kind of backwards country do you live in where people _enjoy_ scanning QR codes?
Also: Traffic limits suck
Admin: Make up a password, make sure your password has at least 8 characters and have capitalize letters.
Blonde: Ok, my password is “MickeyMinniePlutoGoofyDonaldHueyDeweyLouie“
Make sure the QR code is NOT visible from outside via the windows in your house.
However, having a phone number not your own (or indeed, any number of less than 7 digits) that you can memorize and tell your guests works just as well. Change it as soon as they leave, bada bing, bada boom, done.
OK, go ahead and set up a QR code. Who said you can't?