Regenerating the fullsource hash was a bit tedious. Instead, it makes a bit more sense to use the current commit hash as the header image. This uses sha1 nibbleart. Signed-off-by: Alek Ratzloff <alekratz@gmail.com>
1.4 KiB
colorhash
A tool for creating distinct art based on input data or hash.
Usage
- Clone the repository
- Run using
python -m colorhash -hfor usage.
No dependencies required, everything is vanilla Python >=3.10.
Example usage
Create art using the default "nibble" art algorithm, printing out to the terminal
python -m colorhash infile.dat
Create art using the OpenSSH "randomart" art algorithm, writing to an SVG file
python -m colorhash infile.dat -y svg -o out.svg -m randomart
Create art using an MD5 hash instead of the default SHA512
python -m colorhash infile.dat -y svg -o out.svg -a md5
Motivation
If you see the picture is different, the key is different.
If the picture looks the same, you still know nothing.
(From OpenSSH sshkey.c fingerprint_randomart() function)
Cryptographic hashes are often visually distinct, however, sometimes they are not. This can become vitally important in matters of security, when you are comparing two key hashes or verifying the checksum of a file from the internet. The goal of this project is to give more fuel for human pattern recognition so that two extremely similar hashes, maliciously crafted or not, have more visual depth to their distinction.
Examples
See the examples directory.