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.

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 2.0.2
    2
    • latest

Version History

  • Version
    Downloads (Last 7 Days)
    • Published
  • 2.0.2
    2
  • 2.0.1
    0
  • 2.0.0
    0
  • 1.0.0
    0

Package Sidebar

Install

npm i sexyhash

Weekly Downloads

2

Version

2.0.2

License

MIT

Unpacked Size

1.68 kB

Total Files

3

Last publish

Collaborators

  • jehy-true