2.0.2 • Published 5 years ago

sexyhash v2.0.2

Weekly downloads
-
License
MIT
Repository
-
Last release
5 years ago

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.

2.0.2

5 years ago

2.0.1

5 years ago

2.0.0

5 years ago

1.0.0

5 years ago