Collision
Collision copied to clipboard
[Request]: Disabling/enabling hash functions
Describe the request
... -> Settings: toggles for disabling/enabling sums. This feature would be useful for larger files, as it would speed up the calculation process. I also usually only need one type of hash.
Implementation Details
- [x] This follows the GNOME HIG.
It does sound good but we need to figure out how to do the file comparison. Right now, it calculates the sah256 hash of the selected file and checks against the open one's sha256 hash.
As it stands, I only see three options:
- Don't allow sha256 to be disabled and keep the comparison as is
- Calculate the sha256 hash of both the open file and the one that was just picked when it gets picked and keep the comparison as is - :x: I don't like this, if the open file is big it will take longer
- Use one of the enabled hash functions for the picked file and compare it to the open one - :/ not sure about this one either, while it makes the most sense, if the only available hash functions is one that is very prone to collisions, it'll be insecure and wrong (like MD5)