armenak / DataDefender

Sensitive Data Management: Data Discovery and Anonymization toolkit
Apache License 2.0
146 stars 55 forks source link

Make hash.txt optional with a warning message #172

Closed zbateson closed 2 years ago

zbateson commented 2 years ago

@armenak --

The static loading for hash.txt in Core.java spits out an ugly error message even if not using encryption methods. I propose we change it so:

  1. A small warning message appears instead without a stack trace
  2. An error is shown when calling 'getHash' if getHash is null, and an exception is thrown at that point

If that looks okay to you, feel free to merge :)

Thanks, Zaahid

armenak commented 2 years ago

Thank you Zaahid!