by graton · 4y ago · 0 comments
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\";;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.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.
Works for emoji in both the SSID and Password.