🚀 Socket Launch Week 🚀 Day 5: Introducing Socket Fix.Learn More
Socket
Sign inDemoInstall
Socket

fast-ssdeep

Package Overview
Dependencies
Maintainers
0
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

fast-ssdeep

Node.js binding for the ssdeep CTPH library

1.0.2
latest
Source
npm
Version published
Weekly downloads
14
-30%
Maintainers
0
Weekly downloads
 
Created
Source

fast-ssdeep

Version Downloads Build Status License

Node.js binding for the ssdeep CTPH library.

ssdeep project website

Installation

Install the fast-ssdeep package from the NPM registry using your package manager of choice.

Example:

npm install fast-ssdeep
# or
yarn add fast-ssdeep
# or
pnpm install fast-ssdeep

Documentation

ssdeep.hash(contents: string|Buffer): Promise<string>

Asynchronously calculate an ssdeep hash based on the contents argument, which can be a string or Buffer.

ssdeep.hashSync(contents: string|Buffer): string

Synchronously calculate an ssdeep hash based on the contents argument, which can be a string or Buffer.

ssdeep.compare(hash1: string, hash2: string): Promise<number>

Asynchronously compare two ssdeep hashes to generate a similarity score. Both hashes must be passed as strings, and a similarity between 0-100 will be returned.

ssdeep.compareSync(hash1: string, hash2: string): number

Synchronously compare two ssdeep hashes to generate a similarity score. Both hashes must be passed as strings, and a similarity between 0-100 will be returned.

Keywords

ssdeep

FAQs

Package last updated on 16 Aug 2024

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