Giter Site home page Giter Site logo

tlsh's People

Contributors

barrbrain avatar dkrisman avatar vthib avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

tlsh's Issues

Are there any benchmarks

Would be nice to see how this implementation performs compared to the original C++ implementation

Usage in tree

Hi,

My use case is following:
I would like store thousands to tens of thousands of these tlsh objects and then later after creating new one I would like to find the most similar tlsh object from these stored ones as fast as possible. And if none of them match up to a certain diff value I will store that to the storage.

Is it possible to have sorted binary tree or similar datastructure for comparing the tlsh objects or is vector and linear scan the only way?

[feature request] impl FromStr

Is it possible to implement a impl FromStr?
I would like to be able to do something like this:

let tlsh = tlsh2::Tlsh::from_str("T184A022B383C2A2A20ACB0830880CF0202CCAC080033A023800338A30B0880AA8E0BE38"); // <<< this
let tlsh2 = tlsh2::TlshDefaultBuilder::build_from(b"odit aut fugit, sed quia consequuntur magni dolores").ok_or_else(|| "could not generate TLSH from second payload")?;
assert_eq!(tlsh.diff(&tlsh2, true), 209);

example: https://github.com/Uinelj/tlsh-rs/blob/main/src/tlsh.rs#L99-L158

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.