Research
Security News
Quasar RAT Disguised as an npm Package for Detecting Vulnerabilities in Ethereum Smart Contracts
Socket researchers uncover a malicious npm package posing as a tool for detecting vulnerabilities in Etherium smart contracts.
blockhash-core
Advanced tools
This is the core implementation of the [blockhash perceptual image hashing algorithm](http://blockhash.io).
This is the core implementation of the blockhash perceptual image hashing algorithm.
Look at the main blockhash
package if you want a higher level api.
npm install --save blockhash-core
const { bmvbhash } = require('blockhash')
const image = new ImageData(/* ... */)
const result = bmvbhash(image, 16)
console.log(result)
//=> f81bf99ffb803400e07f8c5d849f049707033a033fe33fe1bfe00e618ee30ca7
bmvbhash(data, bits)
data
(ImageData
, required) - The input image databits
(number
, required) - Create hash of size N^2 bitsstring
- The resulting hash in hex formatPrecise but slower, non-overlapping blocks.
This method is recommended as a good tradeoff between speed and good matches on any image size.
bmvbhashEven(data, bits)
data
(ImageData
, required) - The input image databits
(number
, required) - Create hash of size N^2 bitsstring
- The resulting hash in hex formatQuick and crude, non-overlapping blocks.
This method is only advisable when the image width and height are an even multiple of the number of blocks used.
FAQs
This is the core implementation of the [blockhash perceptual image hashing algorithm](http://blockhash.io).
The npm package blockhash-core receives a total of 3,761 weekly downloads. As such, blockhash-core popularity was classified as popular.
We found that blockhash-core demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
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.
Research
Security News
Socket researchers uncover a malicious npm package posing as a tool for detecting vulnerabilities in Etherium smart contracts.
Security News
Research
A supply chain attack on Rspack's npm packages injected cryptomining malware, potentially impacting thousands of developers.
Research
Security News
Socket researchers discovered a malware campaign on npm delivering the Skuld infostealer via typosquatted packages, exposing sensitive data.