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: 2.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-2.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-2.0.0-cp313-cp313-win_amd64.whl (81.7 kB view details)

Uploaded CPython 3.13Windows x86-64

File details

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

File metadata

  • Download URL: rudra_512_hash-2.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-2.0.0.tar.gz
Algorithm Hash digest
SHA256 60b6d233f517adb830b9336dd4b37968c1b9663508076d4fd1857ecb563041c3
MD5 cbe71133d9621c639a366da796ea9168
BLAKE2b-256 b477d5cf0aeeaa26505c51fff6ca305e3d950d1941d237630d17ac2f82588c6a

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for rudra_512_hash-2.0.0-cp313-cp313-win_amd64.whl
Algorithm Hash digest
SHA256 988aa72ccda71ecb4beeb20a180e93cbbdf0ecf01321d36259b883e98d52d12e
MD5 f2e8b8b3b230cbc44c3cdaf7441b94e2
BLAKE2b-256 174f0b3732bb43184e5d209a4afabef49286a5e5e4ba8fa34dc8bc9e8d95ead2

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