Security News
38% of CISOs Fear They’re Not Moving Fast Enough on AI
CISOs are racing to adopt AI for cybersecurity, but hurdles in budgets and governance may leave some falling behind in the fight against cyber threats.
Generate a QR code to share WiFi creds (SSID+Pass).
this is the core functionality, a library/API used by the WiFiQR WebApp.
install the lib:
pip install wifiqr-core
Varouise ways to use:
Import as a lib or an API:
from wifiqr_core import wifi_2_qr
# 🛠 Initialize the class
wq = wifi_2_qr()
CLI tool:
$ wifiqr-core
⚠️ As a MacOS user, you gotta fill in manually...
✍️ WiFi Name: ******
🙈 Hidden Network (yes/no): no
🔐 WiFi Password (leave empty if none): **********
🎨 Output/image name: qr
Install and use on your own projects.
Following exmaple shows how to creat an
img.png
containing a QR-Code with your WiFi creditionals.
from wifiqr_core import wifi_2_qr
# change this to the desired output image name.
img_name = "QR_CODE"
ssid = "your_wifi_name"
password = "your_wifi_pass"
# 🛠 Initialize the class
wq = wifi_2_qr()
# 🔐 Get WiFi credentials
try:
my_wifi_info = wq.get_wifi()
print(my_wifi_info)
except TypeError:
"Incase using MacOS, must set the wifi manually"
my_wifi_info = wq.set_wifi(
ssid=ssid, password=password, auth_type='WPA2', hidden="false")
except:
print("Something wrong accored..!")
# 🎨 Build the QR-Code
qr_img = wq.get_qr(my_wifi_info)
print(qr_img)
# 💾 Save the qrcode as .png img in local dir
wq.save_qr(qr_img, img_name)
# or you can:
# qr_img.save(img_name + " .png")
If you would like to develop the project...
clone the repo (or better fork it):
git clone https://github.com/MoElaSec/WiFiQR_Core
cd WiFiQR_Core
install requirments:
pipenv install
If you don't have pipenv (high recommend you do), A requirments.txt file is provided use:
`pip install -r requirments.txt` instead.
Get connected WLAN/WiFi creditionals (SSID+Password)
Generte a QR-code from WiFi creds.
pip install qrcode
FAQs
An API to generate a QR-code for your WiFI to let others quickly connect.
We found that wifiqr-core demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
CISOs are racing to adopt AI for cybersecurity, but hurdles in budgets and governance may leave some falling behind in the fight against cyber threats.
Research
Security News
Socket researchers uncovered a backdoored typosquat of BoltDB in the Go ecosystem, exploiting Go Module Proxy caching to persist undetected for years.
Security News
Company News
Socket is joining TC54 to help develop standards for software supply chain security, contributing to the evolution of SBOMs, CycloneDX, and Package URL specifications.