michielbuddingh / spamsum Goto Github PK
View Code? Open in Web Editor NEWA native go implementation of spamsum
License: Apache License 2.0
A native go implementation of spamsum
License: Apache License 2.0
Hi,
I'm interested in using your library in Golang and wanted to understand the differences between it and ssdeep.
i have a corpus of test objects described here in my overview: https://gist.github.com/ross-spencer/60c43abc87faa30ae7c3#file-ssdeep-spamsum-comparison-overview
And have found the following false results when comparing the output of SSDEEP vs. Spamsum: https://gist.github.com/ross-spencer/60c43abc87faa30ae7c3#file-false-results-csv
316 match, vs. 9 that don't.
Is it worth me looking at the spamsum code to try and improve the algorithm to match ssdeep - do you think ssdeep is a good benchmark?
Edit: I've run a quick comparison of the strings, and they seem to be different in the same places: https://gist.github.com/ross-spencer/60c43abc87faa30ae7c3#file-comparison-of-differences-txt
I will need to look at the one string that is completely different from the ssdeep output.
I'm trying to test spamsum, but seeing the following results:
sscompare -compare -string1 "the quick brown fox jumped over the lazy dog." -string2 "the quick brown fox jumped over the lazy dog."
byte string 1: [116 104 101 32 113 117 105 99 107 32 98 114 111 119 110 32 102 111 120 32 106 117 109 112 101 100 32 111 118 101 114 32 116 104 101 32 108 97 122 121 32 100 111 103 46]
hash1: 3:UkLKKI6myFRc5:UAIp+o
byte string 2: [116 104 101 32 113 117 105 99 107 32 98 114 111 119 110 32 102 111 120 32 106 117 109 112 101 100 32 111 118 101 114 32 116 104 101 32 108 97 122 121 32 100 111 103 46]
hash2: 3:UkLKKI6myFRc5:UAIp+o
comparison result: 13
The code:
func compareStrings(byteval1 []byte, byteval2 []byte) {
hash1 := hashString(byteval1)
hash2 := hashString(byteval2)
fmt.Println("comparison result: ", hash1.Compare(*hash2))
}
Other short strings seem to be failing with inconsistent behaviour.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.