A D implementation of the hashids library
To use this package, put the following dependency into your project's dependencies section:
import hashids; auto hasher = new Hashids(); string hash = hasher.hash(1, 2, 3); // "o2fXhv" ulong numbers = hasher.decode(hash); // [1, 2, 3]
Hashid constructor takes three optional parameters:
- salt (a string)
- minimum hash length (a uint)
- alphabet (a string)
- python-hashids for excellent unittests which were ported over.