ccd0 / 4chan-x

Adds various features to anonymous imageboards.
https://www.4chan-x.net/
Other
988 stars 135 forks source link

Replace MD5 with perpetual hashing #971

Open newfaggit opened 8 years ago

newfaggit commented 8 years ago

Currently MD5 is used for blocking images. This works most of the time but has the downside that just changing one single pixel in the image will break the filter. This is however how MD5 works so it's expected result.

I think that using perpetual hashing, if possible, would be a much better implementation since it will also block similar images. As a side effect, it could prove effective against pepe, bananas and all kinds of other cancer you don't want to see.

ccd0 commented 8 years ago

Perceptual hashing is probably too CPU-intensive to be worth it, but we might do simpler tests, like looking for specific colors in the thumbnail (#794).

pokeball99 commented 8 years ago

@ccd0 do both ways and have a warning next to the perceptal hash about any heavy CPU use