Skip to content
This repository has been archived by the owner. It is now read-only.
Generate a pair of unique PDFs with the same SHA1 hash
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
.gitignore
LICENSE
README.md
run.sh
sample1.pdf
sample2.pdf
suffix.txt

README.md

Generate pairs of simple PDFs that hash to the same SHA-1 sum

Better Versions

Better versions of this attack have been demonstrated, be sure to check these out as well:

Usage

Download and run the scripts (on Linux):

$ chmod u+x run.sh
$ ./run.sh "Some Text" "Different Text"

This will download the shattered.it SHA-1 collision PDFs, and generate two customized PDFs. The PDFs will be visuall different but will both hash to the same SHA-1 sum due the way SHA-1 processes blocks of data.

These PDFs use the background color (as set in the original PDFs) to to hide text of the same color. Highlighting the document will show the hidden text.

References

You can’t perform that action at this time.