Projects


A custom hash function like MD5, SHA256 etc, which takes an input and returns the hex digest of the hash of the input.

useState

Cryptographic hash function


Cryptographic hash function


So what is a hash function?
Simply put, a hash function is a mathematical algorithm which takes in an input, and spits out a fixed type (length) of output. It is a one way function, so the reverse operation is practically impossible. Practically. On paper, given enough time, it is possible to brute force your way back to the input, but it may require hundreds of billions of years.


This is my take in an attempt to recreate such an algorithm. Please note, while it might seem like an impressive feat, it is better use traditional SHA-1, SHA-128, SHA-256, etc algorithms for hashing. This particular one that I've made is a 128 bit hashing algorithm.


How to use it?
Clone the github repository.
app.py

from main import AR15
stringToHash = "Hello!"  
print(f"Hash is { AR15().hash(stringToHash) }")

And that's it!
Easy to use cryptographic hashing algorithm.


Mohammad Arafat Zaman © 2024


All rights reserved