โ— Shell
clean mode source โ†—

GitHub - ProgrammerKR/HashX: HashX is a high-performance 512-bit hashing algorithm optimized for speed, security, and scalability. It features multi-threading, advanced mixing, and HMAC-style security, ensuring strong collision resistance and a powerful avalanche effect. Ideal for checksums, indexing, data integrity, and non-cryptographic applications.

The simplest & fastest open-source hashing library!



HashX is an ultra-fast, efficient, and secure 256-bit hashing algorithm designed for data integrity verification, indexing, checksums, and non-cryptographic applications.

Built with multi-threading, optimized bitwise operations, and an advanced mixing function, HashX delivers exceptional speed, collision resistance, and scalability.

๐Ÿš€ Features & Enhancements

โœ… High-Speed Processing โ€“ Optimized bitwise operations and low-level transformations.
โœ… Multi-Threaded Execution โ€“ Parallel chunk processing for increased speed.
โœ… 512-bit Strong Hash Output โ€“ Reduces collisions while maintaining efficiency.
โœ… Advanced Mixing Function โ€“ Inspired by MurmurHash3 for better diffusion.
โœ… Bitwise Rotation Optimization โ€“ Faster and more secure state transformations.
โœ… Lightweight & Scalable โ€“ Low memory usage, works on large data sets.
โœ… Strong Avalanche Effect โ€“ Small input changes drastically modify the hash.
โœ… Cross-Platform & Extensible โ€“ Works seamlessly in Python, with future support planned for C/Rust.


๐Ÿ“ฅ Installation

Clone the repository:

git clone https://github.com/ProgrammerKR/HashX.git

Navigate to the directory:

๐Ÿ› ๏ธ Usage

Python Example

from hashx import HashX

hasher = HashX()
print(hasher.hash("Hello, World!"))  # Example usage

Output

3F2A9D7B89C4E6A5D12F1E4B67A3C9D5E8F7B2A6C3D1E0F4B6A2D9C7E3F5A5B1

โš™๏ธ How It Works

  1. Initialization โ€“ Hash state consists of 4 unique parts, seeded for strong uniqueness.
  2. Chunk Processing โ€“ Data is split into 64-bit blocks, processed in parallel threads.
  3. Bitwise Mixing & Rotation โ€“ Advanced scrambling ensures strong randomness.
  4. Finalization Rounds โ€“ Enhanced diffusion eliminates weak patterns.
  5. Output Generation โ€“ 512-bit hexadecimal hash is returned.

๐Ÿ”ฌ Benchmarking

HashX has been tested against SHA-256, BLAKE3, xxHash, and MurmurHash3 for speed and efficiency.

Benchmark Results

For detailed benchmark results, check the full report:
๐Ÿ“Š Benchmark Results

๐Ÿ› ๏ธ Future Plans

  • C and Rust Implementation for ultra-fast performance.
  • GPU Acceleration using CUDA/OpenCL.
  • Cryptographic Security Mode for password hashing.

๐Ÿ“ข Have questions or feedback?

  • ๐Ÿ’ฌ Join discussions here
  • ๐Ÿ› Found a bug? Report here

๐Ÿค Contributing

Contributions are welcome! Feel free to fork the repo, submit issues, or create pull requests.

๐Ÿ› ๏ธ How to Contribute?

  1. Fork the Repository (Click the "Fork" button at the top of the repo).
  2. Clone your Fork
    git clone https://github.com/your-username/HashX.git
  3. Create a New Branch
    git checkout -b improve-docs
  4. Make Changes (Edit README.md and add documentation updates).
  5. Commit & Push
    git add README.md
    git commit -m "Improved documentation & usage examples"
    git push origin improve-docs
  6. Create a Pull Request (Go to the original repo and submit a PR).

๐Ÿ“œ License

This project is open-source and available under the MIT License.