Skip to main content

DigiRaksha Quantum Encryption Hasher โ€“ Python SDK

Project description

๐Ÿ” DQEH โ€“ DigiRaksha Quantum Encryption Hasher

Official Python SDK

PyPI version Python License

DQEH is a Quantum-Inspired, Chaos-Driven, Non-Reversible Hashing Algorithm developed under the DigiRaksha security framework.

This Python SDK provides simple access to the DigiRaksha Quantum Hasher via REST API.


๐Ÿš€ Features

  • ๐Ÿ”ฌ Quantum-Inspired Encryption
    Utilizes chaotic logistic maps, bit-reversal, nibble-swapping, entanglement and multi-round diffusion.

  • ๐Ÿ”’ Irreversible 256-bit Hash Output
    Safe for password storage, authentication systems, API tokens, and secure identity hashing.

  • ๐Ÿ‘จโ€๐Ÿ’ป Developer-Friendly Python SDK
    Simple, intuitive API:

    from drqeh import encrypt
    hashed = encrypt("your_password")
    
  • โšก Lightweight & Fast
    Only one dependency: requests.

  • ๐Ÿ›ก๏ธ Centralized Security
    Hashing logic is securely executed on DigiRaksha servers โ€” algorithm remains private.


๐Ÿ“ฆ Installation

Install directly from PyPI:

pip install drqeh

๐Ÿ”ง Quick Start

Basic Example

from drqeh import encrypt

# Encrypt a password
hashed = encrypt("Pass@123")
print("Encrypted:", hashed)

Output (example):

4a9f0c3e24ac9f9ddf83a18d54e2b730c2e8b8d6a1c0f61bd8d3c217f42a219b

With Error Handling

from drqeh import encrypt

try:
    hashed = encrypt("MySecurePassword!")
    print("Hash:", hashed)
except Exception as e:
    print("Encryption failed:", e)

๐Ÿ” What is DQEH?

DQEH (DigiRaksha Quantum Encryption Hasher) is a next-generation hashing algorithm that uses:

It produces a 256-bit irreversible hash, similar in purpose to SHA-256, but powered by a quantum-inspired chaotic processing pipeline.

โœ… Key Characteristics

  • โœ”๏ธ Not reversible โ€“ One-way hashing only
  • โœ”๏ธ Not crackable by brute-force โ€“ Quantum-resistant design
  • โœ”๏ธ No collisions โ€“ Tested on millions of test cases
  • โœ”๏ธ Suitable for authentication โ€“ Password & token systems

๐ŸŒ API Details

This SDK communicates with the DigiRaksha backend:

Endpoint:

POST https://digirakshaquantumencription.onrender.com/encrypt

Request Payload:

{
  "password": "your_input"
}

Response:

{
  "encrypted": "4a9f0c3e24ac9f9ddf83a18d54e2b730...",
  "length": 10
}

โš ๏ธ Error Handling

The SDK raises a Python exception when:

  • โŒ API is unreachable
  • โŒ Invalid data is passed
  • โŒ Network timeout occurs

Example:

from drqeh import encrypt

try:
    result = encrypt("Hello")
except Exception as e:
    print("Encryption failed:", e)

๐Ÿ” Security Notes

  • ๐Ÿ”’ Hashing is non-reversible โ€“ Cannot be decrypted
  • ๐Ÿšซ No plaintext storage โ€“ Only hashes are stored
  • ๐Ÿ” HTTPS-only communication โ€“ All API calls are encrypted
  • ๐Ÿ›ก๏ธ Server-side processing โ€“ Algorithm stays protected
  • ๐Ÿ”’ No local algorithm exposure โ€“ Prevents reverse-engineering

This ensures:

โœ… Enterprise-grade security
โœ… No tampering or manipulation
โœ… Algorithm protection
โœ… Compliance-ready architecture


๐Ÿ› ๏ธ Requirements

  • Python 3.7+
  • requests library (auto-installed)

๐Ÿ“˜ Versioning

Version Release Date Notes
v1.0.0 2025-11 Initial release of Python SDK

Upcoming Features

  • ๐Ÿ”‘ API key support
  • ๐Ÿ”„ Local hashing fallback
  • โšก Async variant (async def encrypt())
  • ๐Ÿ”— Multi-hash pipelines

๐Ÿ“š API Reference

encrypt(password: str) -> str

Encrypts the given password using DigiRaksha Quantum Encryption Hasher.

Parameters:

  • password (str): The string to be hashed

Returns:

  • str: 256-bit hexadecimal hash

Raises:

  • Exception: If API call fails or returns an error

Example:

from drqeh import encrypt
hash_output = encrypt("MyPassword123")

๐Ÿค Contributing

We welcome contributions! Here's how you can help:

  1. ๐Ÿ› Report bugs via GitHub Issues
  2. ๐Ÿ’ก Suggest features or improvements
  3. ๐Ÿ“ Improve documentation
  4. ๐Ÿงช Add test cases

๐Ÿ“ž Support

For issues, questions, or support:


๐Ÿ“„ License

ยฉ 2025 DigiRaksha โ€“ All Rights Reserved

This software is proprietary. Unauthorized copying, reverse-engineering, distribution, or replication is strictly prohibited.


๐ŸŒŸ Acknowledgments

Developed with โค๏ธ by the DigiRaksha Security Team

Author: [Kallesh D R] Connect Me: Linkedin


โญ Star us on GitHub if you find this useful! โญ

GitHub โ€ข PyPI โ€ข Documentation

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

drqeh-1.0.2.tar.gz (4.1 kB view details)

Uploaded Source

Built Distribution

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

drqeh-1.0.2-py3-none-any.whl (4.2 kB view details)

Uploaded Python 3

File details

Details for the file drqeh-1.0.2.tar.gz.

File metadata

  • Download URL: drqeh-1.0.2.tar.gz
  • Upload date:
  • Size: 4.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.14.0

File hashes

Hashes for drqeh-1.0.2.tar.gz
Algorithm Hash digest
SHA256 2e9d7a22e34dc0a10c6faec174d2d2d27dd16d0aa31c624c89dd22f2600a10be
MD5 f10e22a34cf2fcfb79208403bcd63a14
BLAKE2b-256 d4d7d263bfe8c0dca633a47d23c60eea909cf8315d68f7391641a948975cdce4

See more details on using hashes here.

File details

Details for the file drqeh-1.0.2-py3-none-any.whl.

File metadata

  • Download URL: drqeh-1.0.2-py3-none-any.whl
  • Upload date:
  • Size: 4.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.14.0

File hashes

Hashes for drqeh-1.0.2-py3-none-any.whl
Algorithm Hash digest
SHA256 21eaa475c0803d8c784d3162ba17131f94321f448a2239ea881198a37dee3d1e
MD5 4cc45663a7d7dc367ad506e03353d22f
BLAKE2b-256 b528363d7509415809cc62dece1a3fddc63b59be02238240e684a6bd73b18c98

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