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: 4.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-4.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-4.0.0-cp313-cp313-win_amd64.whl (83.8 kB view details)

Uploaded CPython 3.13Windows x86-64

File details

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

File metadata

  • Download URL: rudra_512_hash-4.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-4.0.0.tar.gz
Algorithm Hash digest
SHA256 36c6e420d7a8111551a4b1eec7299011cb1199c93c20668309933f6d43dd5ca6
MD5 95df91bb467424d60be359187256d177
BLAKE2b-256 25b07d413d2a61f8ac9d8f7ac11306b1f810e5e181f8bb8c7b16936e5bf90caa

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for rudra_512_hash-4.0.0-cp313-cp313-win_amd64.whl
Algorithm Hash digest
SHA256 575fc3f3ae8c1939e9de3c30d3525f2ac18259d60f6cb7d92aa71bdf6058bf13
MD5 e5bb8c366b04981cf20a086f508aefb2
BLAKE2b-256 f41f0865b159871e06f63c0f5d3043262ba47bfede001cdaf6a1968ad0a51d8a

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