Skip to content

Generates a QR code from a Wireguard config file for easy mobile import.

Notifications You must be signed in to change notification settings

cuddlyclara/WireguardQR

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 

Repository files navigation

WireguardQR

A simple Python script to generate a QR code from an existing Wireguard configuration file using the qrcode Python library.

Prerequisites

Install the qrcode Python library using pip:

pip install qrcode

Usage

Pipe your Wireguard configuration file to the Python script wgqr.py using cat:

cat wg.conf | python ./wgqr.py

The QR code will be displayed in the terminal using ASCII characters. You can use this QR code to quickly import the tunnel into the Wireguard mobile app.

Example

You can use the provided example.conf file in this repository to test the import:

cat example.conf | python ./wgqr.py

This is only a sample file and does not serve any other purpose.

About

Generates a QR code from a Wireguard config file for easy mobile import.

Topics

Resources

Stars

Watchers

Forks

Languages