Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

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.

License

Notifications You must be signed in to change notification settings

ProgrammerKR/HashX

⚑ HashX – High-Performance 512-bit Hashing Algorithm

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:

cd HashX

πŸ› οΈ 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.

About

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.

Topics

Resources

License

Code of conduct

Contributing

Security policy

Stars

Watchers

Forks

Packages

No packages published

Languages

AltStyle γ«γ‚ˆγ£γ¦ε€‰ζ›γ•γ‚ŒγŸγƒšγƒΌγ‚Έ (->γ‚ͺγƒͺγ‚ΈγƒŠγƒ«) /