shana0440 / pdq

A simple Node.js library wrapping Rust implementation of PDQ Hash.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

PDQ

This is a node.js library wrapping PDQ Hash.

How to use

import { pdq } from "pdq";

const buffer = fs.readFileSync("./test_data/bridge-1-original.jpg");
const data = Uint8Array.from(buffer);
const hash = pdq(data);

About

A simple Node.js library wrapping Rust implementation of PDQ Hash.

License:Apache License 2.0


Languages

Language:JavaScript 95.4%Language:Rust 4.6%