This script validates file hashes (MD5, SHA256, SHA1, SHA512) and adds emblems to files in Nautilus.
- Validates hashes using
.md5sum
,.sha256sum
,.sha1sum
and.sha512sum
files. - Applies
emblem-hash-verified
to verified files. The files are not validate repeatedly. - Applies
emblem-hash-error
to verified files. The files may be validated repeatedly.
pycairo
PyGObject
Install these dependencies using:
pip3 install -r requirements.txt
python3-nautilus
Install this package using your system package manager. For example, on Ubuntu/Debian:
sudo apt install python3-nautilus
-
Clone the repository:
git clone https://github.com/YOUR_USERNAME/nautilus-hash-check.git cd nautilus-hash-check
-
Run the installation script:
./install.sh
-
Restart Nautilus:
nautilus -q && nautilus &
Place hash files in the same folder as the target files. Nautilus will automatically validate the hashes and apply emblems to verified files.
To remove the extension, run:
./uninstall.sh
The assets/
folder contains the source file green-check-icon.svg
, which was used to generate the emblem-shield.png
file. You can modify the SVG and regenerate the PNG using a tool like Inkscape:
inkscape -w 48 -h 48 -o emblem-hash-verified.png --export-page=1 emblem-shield.svg
inkscape -w 48 -h 48 -o emblem-hash-error.png --export-page=2 emblem-shield.svg
also
flatpak run org.inkscape.Inkscape -w 48 -h 48 -o emblem-hash-verified.png --export-page=1 emblem-shield.svg
flatpak run org.inkscape.Inkscape -w 48 -h 48 -o emblem-hash-error.png --export-page=2 emblem-shield.svg
After modifying the icon, run the install.sh script again to update the installation.
MIT