News for hackers. Stuff that matters.
Re:Show HN: Print a WiFi Login Card by floatingatoll on Sunday July 11, 2021 @02:40PM (#27803478)
Did you type this in from memory?!
Re:Show HN: Print a WiFi Login Card by captn3m0 on Sunday July 11, 2021 @03:01PM (#27803676)
There is no real specification. This is the best source[1], which documents QR standards.

>There are some standards -- de facto and otherwise -- already in use. This wiki attempts to catalog some possible standards for encoding various types of information, and suggest a standard action associated to them.

[1]: https://github.com/zxing/zxing/wiki/Barcode-Contents#wi-fi-n...

Re:Show HN: Print a WiFi Login Card by mdaniel on Sunday July 11, 2021 @05:24PM (#27804621)
Damn, that's saddening, but also answers a question I had about what the escape character is for a password containing `;` -- I guess there's no specification to tell me :-(

OTOH, I guess a "standard" is whatever the common implementations accept anyway, so if one could dig up the source to the WiFi QR scanner in source.android.com that's the 2nd best thing

Re:Show HN: Print a WiFi Login Card by jaflo on Sunday July 11, 2021 @06:16PM (#27804910)
No specification, but the linked website mentions that they “propose a syntax like "MECARD" for specifying wi-fi configuration” and then later:

> Special characters \, ;, ,, " and : should be escaped with a backslash (\) as in MECARD encoding.

Re:Show HN: Print a WiFi Login Card by prophesi on Sunday July 11, 2021 @07:19PM (#27805336)
Not OP, but I found that string from viewing the source code for Card.js in the sources tab.
Re:Show HN: Print a WiFi Login Card by mdaniel on Sunday July 11, 2021 @05:26PM (#27804633)
In fairness, the string doesn't seem insaneo: T:=Type S:=SSID P:=Password then only the leading and trailing chars need to be "remembered", plus whatever the escape character is for that password string (or maybe even the SSID -- I'm not super clear on what characters can be in an SSID)
Re:Show HN: Print a WiFi Login Card by bigiain on Sunday July 11, 2021 @06:09PM (#27804863)
> I'm not super clear on what characters can be in an SSID)

I hear “%s%s%s%s%p” is the preferred SSID these days…

Re:Show HN: Print a WiFi Login Card by sp332 on Sunday July 11, 2021 @07:25PM (#27805364)