Runs sha256sum on a file and then interprets the hashsum as an emoji. Contributions welcome. Immediate wishlist: unit testing; hashsum checking; binary file hashsumming
$ touch file.txt # zero byte
$ sha256emoji file.txt
file.txt 👦🏻
$ sha256emoji --help
sha256emoji 0.2.0
USAGE:
sha256emoji [path-to-file]...
FLAGS:
-h, --help Prints help information
-V, --version Prints version information
ARGS:
<path-to-file> Path to the filename(s)
This project is written in rust and so you can use cargo
to install.
git clone https://github.com/lskatz/sha256emoji
cd sha256emoji
cargo build --release
cp -v ./sha256emoji ~/bin
- Generates the sha256sum of a file
- Calculates how far from 0 to the max hexadecimal number it could be
- Uses that same ratio from 0 to the number of available emoticons
- Displays the emoticon at that ratio