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

rudra-512-hash

v11.10.11

Published

Rudra-512 cryptographic hash function

Readme

RUDRA512 (Node.js)

RUDRA512 is a 512-bit cryptographic hash function implemented in C++ with Node.js bindings, designed as a research-oriented construction for experimental analysis.

⚠️ Warning: This implementation is intended for research and experimentation only. It is not a production-ready cryptographic primitive and should not be used in security-critical applications.


🚀 Features

  • 512-bit hash output
  • Native C++ core via Node.js addon
  • Deterministic hashing
  • Configurable rounds
  • Optional salt support
  • File hashing support
  • Command Line Interface (CLI)

📦 Installation

npm install -g rudra-512-hash

🧠 Usage (JavaScript)

const rudra = require("rudra-512-hash");

// Hash a string
console.log(rudra.hash("hello", 32));

// Hash a file
const fs = require("fs");
const data = fs.readFileSync("example.txt", "utf-8");
console.log(rudra.hash(data, 32));

⚙️ Parameters

| Parameter | Type | Description | | --------- | ------ | ---------------- | | input | string | Input string | | rounds | number | Number of rounds | | salt | string | Optional salt |


🖥️ CLI Usage

rudra hello

📌 Examples

# Basic hashing
rudra hello

# Custom rounds
rudra hello --rounds 64

# With salt
rudra hello --salt abc

# File hashing
rudra --file example.txt

# Version
rudra -v

# Help
rudra -h

🔁 CLI Options

| Option | Description | | --------------- | ------------------------------ | | -r, --rounds | Number of rounds (default: 32) | | -s, --salt | Optional salt | | -f, --file | Hash a file | | -v, --version | Show version | | -h, --help | Show help |


🧪 Example Output

Input: "hello"
Output:
9f2c7a... (512-bit hex string)

🔬 Design Overview

RUDRA512 combines:

  • ARX-based mixing (addition, rotation, XOR)
  • Structured preprocessing
  • Tokenisation-based transformation
  • Data-dependent input scattering

The construction is intended to explore alternative hash design approaches.


📚 Specification & Paper

Full specification and analysis available in the research paper:

“RUDRA512: A Structured 512-bit Hash Function with Tokenisation and Input Scattering”

(Insert ePrint link after publication)


🔁 Reproducibility

  • This release corresponds to version 11.10.11
  • Matches the reference version described in the paper
  • Deterministic across platforms

🔐 Security Notes

  • No formal security proof
  • No complete differential or linear cryptanalysis
  • Not independently audited

👉 This project is intended to encourage community cryptanalysis and research discussion.


⚡ Performance Notes

  • Implemented in C++ for efficiency
  • May be slower than established hash functions such as SHA-512 and BLAKE2b

📁 Project Structure

bindings/js/
├── index.js
├── cli.js
├── rudra.cpp
├── binding.gyp
├── package.json

📜 License

Licensed under the Apache License 2.0.


👤 Author

Ayush Anand [email protected]


🌐 Links

GitHub: https://github.com/Developer-Ayush/rudra512 Issues: https://github.com/Developer-Ayush/rudra512/issues


🚀 Version

Current version: 11.10.11