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.
Type Name Latest commit message Commit time
Failed to load latest commit information.

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:


Download and run the scripts (on Linux):

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

This will download the 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.


You can’t perform that action at this time.