sexyhash

2.0.2 • Public • Published

SexyHash

Sometimes size matters.

This module can shorten your hex hashes (and other hex data) by compacting it to a larger but still human readable alphabet:

const Hasher = require('sexyhash');

const hash = 'ee45187ab28b4814cf03b2b4224eb974';

const encoded = Hasher.encode(hash); // 7fBKxltZiQd7TFsUkOp26w
const decoded = Hasher.decode(encoded); // ee45187ab28b4814cf03b2b4224eb974

Standard md5 hash goes from 32 characters to 22 characters! And is still valid and reversible to it's original value.

Readme

Keywords

none

Package Sidebar

Install

npm i sexyhash

Weekly Downloads

0

Version

2.0.2

License

MIT

Unpacked Size

1.68 kB

Total Files

3

Last publish

Collaborators

  • jehy-true