Here is a very simple implementation of a GDB hash algorithm as written in C. The script accepts a single contiguous string of any size as input via command line argument. You can easily use a file as input using a pipe or redirect.
For example:
or
Each character in the string is input as a non-contiguous block of integers, for simplicity in reviewing output.
Enjoy!
For example:
#./gdb_script < input_file.txt
or
#./gdb_script thisismystring
Each character in the string is input as a non-contiguous block of integers, for simplicity in reviewing output.
Enjoy!