drqeh
v1.0.0
Published
DigiRaksha Quantum Encryption Hasher – Node.js SDK
Maintainers
Keywords
Readme
🔐 DQEH – DigiRaksha Quantum Encryption Hasher
Official Node.js/NPM SDK
DQEH is a Quantum-Inspired, Chaos-Driven, Non-Reversible Hashing Algorithm developed under the DigiRaksha security framework.
This Node.js SDK provides simple access to the DigiRaksha Quantum Hasher for your JavaScript/TypeScript applications.
🚀 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 Node.js SDK
Simple, intuitive API:import { encrypt } from "drqeh"; const hashed = await encrypt("your_password");⚡ Lightweight & Fast
Only one dependency:node-fetch.🛡️ Centralized Security
Hashing logic is securely executed on DigiRaksha servers — algorithm remains private.
📦 Installation
Install directly from NPM:
npm install drqehOr using Yarn:
yarn add drqeh🔧 Quick Start
Basic Example (ES6 Modules)
import { encrypt } from "drqeh";
// Encrypt a password
const hashed = await encrypt("Pass@123");
console.log("Encrypted:", hashed);Output (example):
4a9f0c3e24ac9f9ddf83a18d54e2b730c2e8b8d6a1c0f61bd8d3c217f42a219bWith Error Handling
import { encrypt } from "drqeh";
try {
const hashed = await encrypt("MySecurePassword!");
console.log("Hash:", hashed);
} catch (error) {
console.error("Encryption failed:", error.message);
}CommonJS (Node.js < 14)
const { encrypt } = require("drqeh");
(async () => {
const hashed = await encrypt("MyPassword123");
console.log("Encrypted:", hashed);
})();TypeScript Example
import { encrypt } from "drqeh";
const hashPassword = async (password: string): Promise<string> => {
try {
const hash = await encrypt(password);
return hash;
} catch (error) {
throw new Error(`Hashing failed: ${error}`);
}
};
// Usage
const result = await hashPassword("SecurePass123!");
console.log(result);🔍 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
⚠️ Error Handling
The SDK throws an error when:
- ❌ Service is unreachable
- ❌ Invalid data is passed
- ❌ Network timeout occurs
Example:
import { encrypt } from "drqeh";
try {
const result = await encrypt("Hello");
console.log("Success:", result);
} catch (error) {
console.error("Encryption failed:", error.message);
}🔐 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
- Node.js 14.0.0 or higher
node-fetch(auto-installed)
📘 Versioning
| Version | Release Date | Notes | |---------|--------------|-------| | v1.0.0 | 2025-11 | Initial release of Node.js SDK |
Upcoming Features
- 🔑 API key support
- 🔄 Local hashing fallback
- 📦 Browser compatibility
- 🔗 Multi-hash pipelines
- 📘 TypeScript type definitions
📚 API Reference
encrypt(password: string): Promise<string>
Encrypts the given password using DigiRaksha Quantum Encryption Hasher.
Parameters:
password(string): The string to be hashed
Returns:
Promise<string>: 256-bit hexadecimal hash
Throws:
Error: If encryption fails or service is unreachable
Example:
import { encrypt } from "drqeh";
const hashOutput = await encrypt("MyPassword123");
console.log(hashOutput);🤝 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: [email protected]
📄 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 • NPM • Documentation
