6 releases
0.1.5 | Jun 27, 2023 |
---|---|
0.1.4 | Jun 27, 2023 |
0.1.2 | May 13, 2023 |
#3 in #ssid
47 downloads per month
16KB
127 lines
wifi-qr-rs
This is a simple rust program that generates a QR code for connecting to a wifi network when scanned.
The program is heavily inspired by wifi_qrcode_generator.
Installation
$ git clone https://github.com/wckdouglas/wifi-qr-rs.git
$ cd wifi-qr-rs
$ cargo install --path .
$ wifi-qr-rs -h
This is a simple rust program that generates a QR code for connecting to a wifi network when scanned.
Usage: wifi-qr-rs [OPTIONS] --ssid <SSID>
Options:
-s, --ssid <SSID> wifi network name
-i, --is-hidden whether or not the network is hidden
-a, --auth-type <AUTH_TYPE> authentication type [default: wpa] [possible values: wpa, wep, nopass]
-p, --password <PASSWORD> password for the wifi
-o, --output-image <OUTPUT_IMAGE> [default: wifi_qr.png]
-h, --help Print help (see more with '--help')
-V, --version Print version
Usage
$ wifi-qr-rs \
--ssid my_network_name \
--auth-type wpa \
--password my_password \
--output-image my_qr_code.png
[2023-05-13T17:24:02Z INFO wifi_qr_rs] Creating QR code for SSID: "my_network_name" with authentication: [WPA]
[2023-05-13T17:24:02Z INFO wifi_qr_rs] Writting QR code image to: my_qr_code.png
Dependencies
~11MB
~168K SLoC