https://github.com/ytisf/rainbowqr
Python package to encode THREE QR codes into ONE.
https://github.com/ytisf/rainbowqr
exfiltration python3 qrcode steganography steganography-library
Last synced: about 2 months ago
JSON representation
Python package to encode THREE QR codes into ONE.
- Host: GitHub
- URL: https://github.com/ytisf/rainbowqr
- Owner: ytisf
- License: gpl-3.0
- Created: 2022-06-14T08:39:06.000Z (almost 3 years ago)
- Default Branch: main
- Last Pushed: 2022-06-14T08:50:44.000Z (almost 3 years ago)
- Last Synced: 2025-02-26T16:22:34.622Z (2 months ago)
- Topics: exfiltration, python3, qrcode, steganography, steganography-library
- Language: Python
- Homepage:
- Size: 23.4 KB
- Stars: 9
- Watchers: 2
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# RainbowQR

## Abstract
QR codes are such versatile tool in relaying information. This project is intended to examine some 'unorthodox' notions of evaluating various types of usage. The first attempt created here is combining a data set of THREE distinct QR codes into one QR code based on the significance of a color bit.
In this example, a data set is split into THREE distinct chunks. These chunks are then encoded into a QR code seperately, and then merged on the color bits. For example, chunk 0 will be correlating to the red bit, chunk 1 to the green bit and chunk 2 to the blue bit. The combination should enable transmitting 3x the amount of information over the same image.In a one liner - it combines three QR codes into one by correlating the color bits.
## Installation
```bash
git clone https://www.github.com/ytisf/RainbowQR
cd RainbowQR
pip3 install -r requirements3.txt
```
## Usage
Encoding:
```python
#!/usr/bin/env python3import base64
from rainbowqr import RainbowQR
data = b"This is a test of the QR code decoder.\n"
data = base64.b64encode(data)mQR = RainbowQR(qr_version=4)
qred_files = mQR.Encode(data)```
Decoding:
```python
#!/usr/bin/env python3from rainbowqr import RainbowQR
for file in qred_files:
data = mQR.Decode(file)
print(data)
```