npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

drqeh

v1.0.0

Published

DigiRaksha Quantum Encryption Hasher – Node.js SDK

Readme

🔐 DQEH – DigiRaksha Quantum Encryption Hasher

Official Node.js/NPM SDK

npm version Node.js License

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 drqeh

Or 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):

4a9f0c3e24ac9f9ddf83a18d54e2b730c2e8b8d6a1c0f61bd8d3c217f42a219b

With 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:

  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! ⭐

GitHubNPMDocumentation