Skip to content

lskatz/sha256emoji

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 

Repository files navigation

sha256emoji

Runs sha256sum on a file and then interprets the hashsum as an emoji. Contributions welcome. Immediate wishlist: unit testing; hashsum checking; binary file hashsumming

Quick start

$ touch file.txt # zero byte
$ sha256emoji file.txt 
file.txt	👦🏻

Usage

$ 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)

Installation

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

Algorithm

  • 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

About

Create an emoji hashsum from a file

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages