ssdeep-java is a JNA wrapper for SSDeep(Fuzzy hashing)
ssdeep is thread safe
<dependency>
<groupId>tech.tuister</groupId>
<artifactId>ssdeep-java</artifactId>
<version>0.0.1</version>
</dependency>
public class Main {
public static void main(String[] args) throws Exception{
byte[] text = Utils.readFile(new File("/tmp/test.doc"));
String hash = FuzzyHashing.fuzzyHash(text);
System.out.println(hash);
}
}
Demo:
TODO