Closed jonelo closed 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.
implemented in commit https://github.com/jonelo/jacksum/commit/efd6a76ad1e73c0ca84cb0bc2c04e077ed6c3721
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