Benjamin-Loison / cinnamon

A Linux desktop featuring a traditional layout, built from modern technology and introducing brand new innovative features.
GNU General Public License v2.0
0 stars 0 forks source link

`Network Settings` > `Wi-Fi` > `⚙️` > `Security` > `Show password` also as QR code #80

Open Benjamin-Loison opened 6 months ago

Benjamin-Loison commented 6 months ago

To scan from a phone.

Please use:

https://github.com/orgs/linuxmint/discussions

Benjamin-Loison commented 2 months ago

Based on Xiaomi Mi A3 Android 11 following Benjamin-Loison/android/issues/25:

from pyzbar.pyzbar import decode
from PIL import Image

print(decode(Image.open('wifi_qr_code.png'))[0].data.decode('utf-8'))
WIFI:S:Livebox-XXXX;T:WPA;P:PASSWORD;H:false;;

Note that if the PASSWORD contains :, then it must be escaped as \:.

Fairphone 4 LineageOS Android 14 one would be interesting.

Benjamin-Loison commented 2 months ago

Related to the Unix Stack Exchange question 628789.