A package for combining and verifying QR codes using cryptographic hashes
Project description
DecentryK QR
A Python package for combining and verifying QR codes using cryptographic hashes.
Installation
pip install decentryk_qr
Usage
Command Line Interface
Combine two QR codes:
decentryk_qr combine --files qr_1.png qr_2.png
Verify two QR codes against stored hash:
decentryk_qr verify --files qr_1.png qr_2.png
Additional options:
# Specify output file for combined QR
decentryk_qr combine --files qr_1.png qr_2.png --output custom_output.png
# Disable hash storage
decentryk_qr combine --files qr_1.png qr_2.png --no-store-hash
# Specify custom hash file location for verification
decentryk_qr verify --files qr_1.png qr_2.png --hash-file custom_hash.json
Python API
from decentryk_qr import QRHashCombiner
# Create processor instance
processor = QRHashCombiner()
# Combine QR codes
combined_hash, hash1, hash2 = processor.process_qr_codes('qr_1.png', 'qr_2.png', 'output.png')
# Verify QR codes
is_valid, current_hash, expected_hash = processor.verify_qr_codes(
'qr_1.png',
'qr_2.png',
stored_combined_hash
)
Features
- Combine two QR codes using cryptographic hashing
- Generate a new QR code containing the combined hash
- Verify QR codes against previously stored hashes
- Command-line interface for easy use
- Comprehensive Python API for integration into other projects
Requirements
- Python 3.6+
- OpenCV
- qrcode
- Pillow
- numpy
- click
License
MIT License
Author
Zac Weigold
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
decentryk_qr-0.1.0.tar.gz
(4.6 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file decentryk_qr-0.1.0.tar.gz.
File metadata
- Download URL: decentryk_qr-0.1.0.tar.gz
- Upload date:
- Size: 4.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.11.6
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
3ee6b3cb0b161b07ce59191197523b6c7bdd86f19900052344ae797d1beed52c
|
|
| MD5 |
6817b7d971a72fd2fce6ae725ceebee5
|
|
| BLAKE2b-256 |
db937ecf5f70996135f0fa70574b59aa28ac12e359c7b5013a46246b305ec5c2
|
File details
Details for the file decentryk_qr-0.1.0-py3-none-any.whl.
File metadata
- Download URL: decentryk_qr-0.1.0-py3-none-any.whl
- Upload date:
- Size: 5.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.11.6
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
881fba1ab30c0af4727ff76ab2e3fcd7cb3912524a66ca43aaf7dc1e706fb34b
|
|
| MD5 |
52060ba2104f3288a3be87843b80cf30
|
|
| BLAKE2b-256 |
15dce863025ed310a10b439cc797c6e471d513e1a428d67213be9b25d8ca1e97
|