Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/pchaigno/node-ssdeep
Node.js wrapper for the ssdeep fuzzy hashing library
https://github.com/pchaigno/node-ssdeep
fuzzy-hashes node-wrapper ssdeep
Last synced: 2 months ago
JSON representation
Node.js wrapper for the ssdeep fuzzy hashing library
- Host: GitHub
- URL: https://github.com/pchaigno/node-ssdeep
- Owner: pchaigno
- License: mit
- Created: 2016-06-04T20:38:44.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2022-06-22T10:07:36.000Z (over 2 years ago)
- Last Synced: 2024-10-06T19:04:04.630Z (3 months ago)
- Topics: fuzzy-hashes, node-wrapper, ssdeep
- Language: JavaScript
- Homepage:
- Size: 10.7 KB
- Stars: 3
- Watchers: 3
- Forks: 2
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# ssdeep
[![Build Status](https://travis-ci.org/pchaigno/node-ssdeep.svg?branch=master)](https://travis-ci.org/pchaigno/node-ssdeep)
[![Coverage Status](https://coveralls.io/repos/github/pchaigno/node-ssdeep/badge.svg?branch=master)](https://coveralls.io/github/pchaigno/node-ssdeep?branch=master)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](http://ssdeep.sourceforge.net/#download).Then, install the Node.js wrapper:
```
npm install ssdeep
```## Examples
To compute a fuzzy hash:
```node
var hash = ssdeep.hash('text to hash');
```To compute the fuzzy hash of a file:
```node
var hash = ssdeep.hash_from_file('file_to_hash.txt');
```To compare two fuzzy hashes:
```node
var score = ssdeep.compare(hash1, hash2);
```## License
This package is under [MIT license](LICENSE).