New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details →
Socket
Book a DemoSign in
Socket

ssdeep

Package Overview
Dependencies
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

ssdeep

Node.js wrapper for the ssdeep fuzzy hashing library

latest
Source
npmnpm
Version
0.1.1
Version published
Maintainers
1
Created
Source

ssdeep

Build Status Coverage Status

Node.js wrapper for the ssdeep fuzzy hashing library.

Installation

You will need libfuzzy installed. All major Linux distributions have it available as a package:

sudo apt-get install libfuzzy-dev

You can also install it from sources.

Then, install the Node.js wrapper:

npm install ssdeep

Examples

To compute a fuzzy hash:

var hash = ssdeep.hash('text to hash');

To compute the fuzzy hash of a file:

var hash = ssdeep.hash_from_file('file_to_hash.txt');

To compare two fuzzy hashes:

var score = ssdeep.compare(hash1, hash2);

License

This package is under MIT license.

Keywords

fuzzy

FAQs

Package last updated on 05 Jun 2016

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts