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: 3.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-3.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-3.0.0-cp313-cp313-win_amd64.whl (82.1 kB view details)

Uploaded CPython 3.13Windows x86-64

File details

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

File metadata

  • Download URL: rudra_512_hash-3.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-3.0.0.tar.gz
Algorithm Hash digest
SHA256 b604bb0a1fb0c1e94e421bb27cdb52312dc6118ae726fd2ca3d6da7411a90eed
MD5 06af30e0b5a3521099c0510c8184bc28
BLAKE2b-256 529348b91b4c3401d194b88f0a3ef531727dc633104243b58590dea3a295948f

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for rudra_512_hash-3.0.0-cp313-cp313-win_amd64.whl
Algorithm Hash digest
SHA256 52ea57bed500b3dc0df4a90fd0d24c75cf1b621a990ba98901b76c93721b6769
MD5 e517855c47898d83b76f1f69f48094b8
BLAKE2b-256 9273afd3e26c64044890b5e9b41f5b5c18e6dde14fd57a7fdfdf8acf069cfea1

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