Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Make default hash lib configurable without code changes via CLI argument #3947

Merged

Commits on Jul 4, 2024

  1. Configuration menu
    Copy the full SHA
    0b319e4 View commit details
    Browse the repository at this point in the history
  2. server.py: compare_image_hash configurable hash function

    Uses an argument added in cli_args to specify the type of hashing to default to for duplicate hash checking.  Uses an `eval()` to identify the specific hashlib class to utilize, but ultimately safely operates because we have specific options and only those options/choices in the arg parser.  So we don't have any unsafe input there.
    teward authored Jul 4, 2024
    Configuration menu
    Copy the full SHA
    a065a90 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    ac835a4 View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    a4aeed0 View commit details
    Browse the repository at this point in the history
  5. default-hashing-function instead of dupe checking hasher

    This makes a default-hashing-function option instead of previous selected option.
    teward authored Jul 4, 2024
    Configuration menu
    Copy the full SHA
    f491194 View commit details
    Browse the repository at this point in the history
  6. Configuration menu
    Copy the full SHA
    a0033b7 View commit details
    Browse the repository at this point in the history

Commits on Jul 16, 2024

  1. Use safer handling for node_helpers.hasher()

    Uses a safer handling method than `eval` to evaluate default hashing function.
    teward authored Jul 16, 2024
    Configuration menu
    Copy the full SHA
    e1de046 View commit details
    Browse the repository at this point in the history
  2. Stray parentheses are evil.

    teward authored Jul 16, 2024
    Configuration menu
    Copy the full SHA
    8e045e0 View commit details
    Browse the repository at this point in the history
  3. Indentation fix.

    Somehow when I hit save I didn't notice I missed a space to make indentation work proper.  Oops!
    teward authored Jul 16, 2024
    Configuration menu
    Copy the full SHA
    c4467b4 View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    54a0972 View commit details
    Browse the repository at this point in the history