
Research
Malicious fezbox npm Package Steals Browser Passwords from Cookies via Innovative QR Code Steganographic Technique
A malicious package uses a QR code as steganography in an innovative technique.
returns hash digest (fingerprint) of a given buffer, file by it's absolute or relative path or stream in node.js
Returns hash digest (fingerprint) of a given file or stream in node.js Any hash algorithm that node.js crypto supports can be given.
npm i fprint -S
Package includes TypeScript definitions.
function fprint(source: Buffer | string | ReadStream, algorithm: string): Promise<string>
Returns a Promise that resolves to a string with algorithm hex hash digest for a given input.
input - either Buffer
, ReadStream
or file path. Supports both relative and absolute paths
const fprint = require('fprint');
const fs = require('fs');
const filepath = '/path/to/file';
const stream = fs.createReadStream(filepath);
const fileContents = fs.readFileSync(filepath);
let shasum = await fprint(file, 'sha256');
let sha256 = fprint(stream, 'sha256');
let shasum = await fprint(filepath, 'sha256')
function digestSync(buffer: Buffer, algorithm: string): string
Accepts Buffer and creates it's digest
const { digestSync } = require('fprint');
const fs = require('fs');
const file = fs.readFileSync('/path/to/file.min.js');
const md5 = digestSync(file, 'md5');
function digestStream(stream: ReadStream, algorithm: string): Promise<string>
Accepts stream and creates it's digest
shasum -a 256 ./test/fixtures/files/* | awk '{print $1}' > ./test/fixtures/sums/sha256
md5 -q ./test/fixtures/files/* > ./test/fixtures/sums/md5
npm test
FAQs
returns hash digest (fingerprint) of a given buffer, file by it's absolute or relative path or stream in node.js
The npm package fprint receives a total of 91 weekly downloads. As such, fprint popularity was classified as not popular.
We found that fprint 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
A malicious package uses a QR code as steganography in an innovative technique.
Research
/Security News
Socket identified 80 fake candidates targeting engineering roles, including suspected North Korean operators, exposing the new reality of hiring as a security function.
Application Security
/Research
/Security News
Socket detected multiple compromised CrowdStrike npm packages, continuing the "Shai-Hulud" supply chain attack that has now impacted nearly 500 packages.