jonelo / jacksum

A hash utility, est. 2002, FLOSS. 489 hash functions, HMAC support, cross platform, feature-rich, multi threaded. CLI and API. Recursive hashing, predefined and customizable formats, verify data integrity and find ok/failed/missing/new files, find files by their hashes, find the hash function to a hash. GUI provided by HashGarten.
https://jacksum.net
GNU General Public License v3.0
43 stars 5 forks source link

allow -q file:<file> #12

Closed jonelo closed 3 years ago

jonelo commented 3 years ago

Is your feature request related to a problem? Please describe. feature request

Brian dropped me a private email: "Can Jacksum read from a file to determine an unknown algorithm instead of just hex in the command line? I ask because at over 1MB this file cannot be accepted in hex (too long for windows to send in console window)."

which is actually an implicit request for a function extension ...

Describe the solution you'd like allow -q file:<file>

Describe alternatives you've considered no alternatives, because shells have limits and if the command line is too long you get "Argument list too long" on GNU/Linux for example

Additional context n/a

jonelo commented 3 years ago

We need to limit the allowed max size of the file, though, because for the brute force function which uses -q we must avoid I/O calls and we load the entire content of the file into memory.

jonelo commented 3 years ago

implemented in commit https://github.com/jonelo/jacksum/commit/efd6a76ad1e73c0ca84cb0bc2c04e077ed6c3721