Skip to content

rgsecteam/qr-code-generator

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 

Repository files navigation

📱 RG SECURITY TEAM — QR Code Generator

A lightweight command-line QR code generator that encodes any URL or text into a .png image and renders the QR code directly in your terminal.


✨ Features

  • Encodes any URL or plain text into a QR code
  • Renders the QR code live in the terminal (ASCII output)
  • Saves the output as a .png image to any path you choose
  • Auto-appends .png extension if omitted
  • Defaults to generated_qr.png if no filename is provided

📋 Requirements

  • Python 3.7+

⚙️ Installation

1. Clone the repository

git clone https://github.com/rgsecteam/qr-code-generator
cd qr-code-generator

2. Create a virtual environment & Activate

python3 -m venv QRCodeGenerator
source QRCodeGenerator/bin/activate

3. Install dependencies

pip install -r requirements.txt

🚀 Usage

Make sure your virtual environment is active, then run:

python qr_generator.py

You will be prompted to enter:

  1. URL or text — the content to encode
  2. Output file path — where to save the .png (press Enter to use generated_qr.png)

Example session:

==============================================
      RG SECURITY TEAM - QR CODE GENERATOR
==============================================

[+] Enter the URL or Text to encode: https://github.com/rgsecteam
[+] Enter output file path (e.g., /target/path): /home/user/my_qr

[*] Generating QR Code...

[+] Terminal QR Code:
█████████████████████████
█ ▄▄▄▄▄ █▀ █▀▀▀█ ▄▄▄▄▄ █
...

[+] Success! Image saved as: /home/user/my_qr.png
=========================================

📦 requirements.txt

qrcode[pil]

The [pil] extra installs Pillow, which is required to save QR codes as image files.

🔧 Deactivating the Virtual Environment

When you're done, deactivate with:

deactivate

📄 License

This project is open-source and free to use for educational purposes.


Made with 🛡️ by RG Security Team

About

A Python CLI tool that encodes any URL or text into a QR code — renders in terminal & saves as PNG. Built by RG Security Team.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages