Skip to main content

Rudra-512: A high-performance 512-bit cryptographic hash function with strong avalanche properties.

Project description

Rudra-512 (Python)

Rudra-512 is a high-performance 512-bit cryptographic hash function implemented in C++ with Python bindings for maximum speed and usability.


🚀 Features

  • Fast — Native C++ core via pybind11
  • 🔐 512-bit output — Strong cryptographic size
  • 🔄 High avalanche effect (~50%)
  • 🧂 Salt support
  • 🔁 Configurable rounds
  • 📁 File hashing support
  • 🖥️ Command Line Interface (CLI)

📦 Installation

pip install rudra-512-hash

🧠 Usage (Python)

from rudra512 import hash_string, hash_file

# Hash a string
print(hash_string("hello", 32))

# Hash a file
print(hash_file("example.txt", 32))

⚙️ Parameters

Parameter Type Description
input str Input string
rounds int Number of rounds
salt str Optional salt

🖥️ CLI Usage

After installation:

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)

⚡ Performance

  • Native C++ backend
  • Optimized bitwise operations
  • Faster than pure Python implementations

📁 Project Structure

rudra512/
├── __init__.py
├── cli.py
├── __main__.py
├── _rudra512.pyd

🔐 Security Notes

  • Designed for strong avalanche properties
  • Deterministic output for same input + rounds + salt
  • Not yet formally audited

📜 License

Licensed under the Apache License 2.0.


👤 Author

Ayush Anand 📧 developerayushanand@gmail.com


🌐 Links


🚀 Version

Current version: 5.0.0

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

rudra_512_hash-5.0.0.tar.gz (1.8 MB view details)

Uploaded Source

Built Distribution

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

rudra_512_hash-5.0.0-cp313-cp313-win_amd64.whl (84.6 kB view details)

Uploaded CPython 3.13Windows x86-64

File details

Details for the file rudra_512_hash-5.0.0.tar.gz.

File metadata

  • Download URL: rudra_512_hash-5.0.0.tar.gz
  • Upload date:
  • Size: 1.8 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.6

File hashes

Hashes for rudra_512_hash-5.0.0.tar.gz
Algorithm Hash digest
SHA256 df471007ab8c101e305f19dfd61d7b79373c91f1ecd88d2d270dfab4bdb27ee6
MD5 0ed18206d278dc1b7d682b8670d7fcec
BLAKE2b-256 08767773b0ff460c1f4540f4c178ebafe18257ef07ed0ff3275c60ca74afdf78

See more details on using hashes here.

File details

Details for the file rudra_512_hash-5.0.0-cp313-cp313-win_amd64.whl.

File metadata

File hashes

Hashes for rudra_512_hash-5.0.0-cp313-cp313-win_amd64.whl
Algorithm Hash digest
SHA256 64d02885d8e34569e4b2d27f0d2882dac0d3fb313fc23dc8f9109d97c88748ae
MD5 13ef8dd4d96c9366d9d8ec326356ded2
BLAKE2b-256 770fe0c7b34568601983543555c3e204f2a431d8fb72be777aa6fac17e9f2bc7

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