gchq / gchq/CyberChef

Feature request: Add perceptual hashing

Open
#1,401 0 comments 0 reactions 0 assignees View on GitHub
feature
Dominant language
JavaScript
Stars
35.8k
Forks
4.1k
Avg merge
2d 26m
Merged PRs (30d)
33

Description

**Is your feature request related to a problem? Please describe.**
There are two fuzzy hashing functions already available on CyberChef (SSDEEP and CTPH) and would be nice to also add a perceptual hashing one; ideally that works on multiple input types (phash can be applied on images, audio, video and text)

**Describe the solution you'd like**
A function to calculate the perceptual hash of an input image or text

**Describe alternatives you've considered**
phash online website has a demo, but only works for images http://phash.org/demo/

**Additional context**
A perceptual hash is a fingerprint based on the image input, that can be used to compare images by calculating the [Hamming distance](http://en.wikipedia.org/wiki/Hamming_distance)

Contributor guide

Open the contributing guide

Research direction

The issue names no files, entry points, or tests. Start by locating the existing SSDEEP and CTPH operations and determine how CyberChef handles image and text inputs; done requires a defined perceptual-hashing scope, supported input types, and verification coverage.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript
Domain
data
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.