Coder Social home page Coder Social logo

spamsum's People

Contributors

michielbuddingh avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

spamsum's Issues

Comparison results of ssdeep vs. spamsum

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.

Short SpamSum values not matching through Compare function

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.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.