Skip to main content

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


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.2.0.tar.gz (5.9 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

decentryk_qr-0.2.0-py3-none-any.whl (7.0 kB view details)

Uploaded Python 3

File details

Details for the file decentryk_qr-0.2.0.tar.gz.

File metadata

  • Download URL: decentryk_qr-0.2.0.tar.gz
  • Upload date:
  • Size: 5.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.11.6

File hashes

Hashes for decentryk_qr-0.2.0.tar.gz
Algorithm Hash digest
SHA256 8fb07e55471426e0e89cf659dba28a4f39cfd45b424f04d7ac98206942ebc78e
MD5 caf6d8db5cc5f2dff2f6f3ca5a5a159c
BLAKE2b-256 c52b28a71134afa9f6421afe883cafad80474b4e7bcad0199c8f3a8ed47b33a8

See more details on using hashes here.

File details

Details for the file decentryk_qr-0.2.0-py3-none-any.whl.

File metadata

  • Download URL: decentryk_qr-0.2.0-py3-none-any.whl
  • Upload date:
  • Size: 7.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.11.6

File hashes

Hashes for decentryk_qr-0.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 17ab6aa69ec71f6c2a4068cdeb705f89dc5b34a44e01e334addac86c31d259aa
MD5 e998aecd2d8037a2374b0476947ec4aa
BLAKE2b-256 a9fa67505e2bd8bbff2cec16b497e8aa3d05626d595234c786eb169b5d3de494

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page