hasher(1f) - [M_hashkeys] exercise the string hash methods in the M_hashkey(3fm) module (LICENSE:PD)
Synopsis
Description
Options
Author
License
hasher [ input_files [ -hash hashname] ]|[ -string string_value]|--help|--version
hasher(1f) does a byte by byte hash of a file or a hash of a string using the procedures available in the M_hashkey(3fm) module. It is up to the user to determine if the method is suitable for a specific use.When the I/O was not tuned at all and a simple byte-by-byte read was used the program was sixty times slower; in addition the anything_to_bytes(3f) function was slower than expected processing one character at a time, so if you are going to do anything similar it is at least worth a look to look at the sample code.
input_files files to generate a hash for hash name of hash algorithm. Currently allowed values are: djb2 (default) calls djb2_hash(3f) sdbm calls sdbm_hash(3f) crc32 calls cfc32_hash(3f)
--help display this help and exit --version output version information and exit
John S. Urban
Public Domain
hasher (1) | March 11, 2021 |