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: 1.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-1.0.0.tar.gz (103.9 kB 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-1.0.0-cp313-cp313-win_amd64.whl (79.7 kB view details)

Uploaded CPython 3.13Windows x86-64

File details

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

File metadata

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

File hashes

Hashes for rudra_512_hash-1.0.0.tar.gz
Algorithm Hash digest
SHA256 6fa067c052683328a843483fb81048f3452c6087d59cf4c0497b8623f66fa64e
MD5 5df8d6abc580c31d148e4ad94153622f
BLAKE2b-256 5b2d5779bf940fc81719e8a4cba989d3a123138ba874a8487043ac66742cd2bd

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for rudra_512_hash-1.0.0-cp313-cp313-win_amd64.whl
Algorithm Hash digest
SHA256 d481cee6719542b1652e444b1fdc8ac4852cbc1c9c95e985451b2449f32a313d
MD5 76ea142f9e92b7cdb73c195dfcb47aca
BLAKE2b-256 aa6fd7197d09fce7cf8253f6e977c1517e2fff30c574badc3b23dcb7cb9b13cb

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