DigiRaksha Quantum Encryption Hasher โ Python SDK
Project description
๐ DQEH โ DigiRaksha Quantum Encryption Hasher
Official Python SDK
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+
requestslibrary (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:
- ๐ Report bugs via GitHub Issues
- ๐ก Suggest features or improvements
- ๐ Improve documentation
- ๐งช Add test cases
๐ Support
For issues, questions, or support:
- ๐ง Email: kallesh953@gmail.com
๐ 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
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
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 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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
2e9d7a22e34dc0a10c6faec174d2d2d27dd16d0aa31c624c89dd22f2600a10be
|
|
| MD5 |
f10e22a34cf2fcfb79208403bcd63a14
|
|
| BLAKE2b-256 |
d4d7d263bfe8c0dca633a47d23c60eea909cf8315d68f7391641a948975cdce4
|
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
21eaa475c0803d8c784d3162ba17131f94321f448a2239ea881198a37dee3d1e
|
|
| MD5 |
4cc45663a7d7dc367ad506e03353d22f
|
|
| BLAKE2b-256 |
b528363d7509415809cc62dece1a3fddc63b59be02238240e684a6bd73b18c98
|