/emojify-hashes

Crate a visualisation of hashes using unicode emoji. Mirror of https://git.verdigado.com/verdigado/emojify-hashes/

Primary LanguageJavaScriptMIT LicenseMIT

emojify-hashes

Crate a visualisation of a hexadecimal hash using unicode emoji!

Type something in to generate it's sha256 hash and an emoji representation of that.
toSha256ToEmoji> emojify-hashes
f3d18279b58b78a7e41fc6ec93f00f4dde045463ec21a527714e65c30553a52d [ '🍸', 'πŸ₯§', '🐏', 'πŸ—' ]
toSha256ToEmoji> something
3fc9b689459d738f8c88a3a48aa9e33542016b7a4052e001aaa536fca74813cb [ '🦷', 'πŸ₯', '⌨', '🧺' ]
toSha256ToEmoji> exceptional!
4fd8fe71f06f8a44b5fed64e6d358888d55ac3217b3ecf16424d54ddb0c0162d [ 'πŸ•', 'πŸ™', 'πŸ€₯', 'πŸ”¨' ]
toSha256ToEmoji> 

Installation

npm i emojify-hashes

Usage

For demonstrational purposes I bashed out a CLI which converts the entered values to sha256 and then emojifies it. Run it via npm run cli or node cli.js. Exit it with for example with Ctrl + C.

To use the module in your own module (your package.json should contain { "type": "module" }), import and feed it!

import emojify from 'emojify-hashes'

const hash = 'f3d18279b58b78a7e41fc6ec93f00f4dde045463ec21a527714e65c30553a52d' // sha256 of 'emojify-hashes'
const emojis = emojify(hash) // Returns [ '🍸', 'πŸ₯§', '🐏', 'πŸ—' ]
console.log(emojis.join('')) // Outputs 🍸πŸ₯§πŸπŸ—

About

I consider the status of this package to be stable. Contributions are welcome!

Copyright 2023 verdigado eG support@verdigado.com