This script validates file hashes (MD5, SHA256, SHA1, SHA512) and adds emblems to files in Nautilus.
- Validates hashes using
.md5sum,.sha256sum,.sha1sumand.sha512sumfiles. - Applies
emblem-hash-verifiedto verified files. The files are not validate repeatedly. - Applies
emblem-hash-errorto verified files. The files may be validated repeatedly.
pycairoPyGObject
Install these dependencies using:
pip3 install -r requirements.txtpython3-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.shThe 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.svgalso
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.svgAfter modifying the icon, run the install.sh script again to update the installation.
MIT