hashids 1.0.0
A D implementation of the hashids library
To use this package, run the following command in your project's root directory:
Manual usage
Put the following dependency into your project's dependences section:
#D Hashids A D port of hashids, a library for encoding integer sequences as opaque, url-friendly blobs. ##Usage
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)
##Acknowledgements
- python-hashids for excellent unittests which were ported over.
- Registered by Viking Edström
- 1.0.0 released 9 years ago
- actimia/hashids-dlang
- MIT
- (c) 2015 Viking Edström
- Authors:
- Dependencies:
- none
- Versions:
-
1.0.0 2015-Oct-10 ~master 2015-Oct-10 - Download Stats:
-
-
0 downloads today
-
0 downloads this week
-
0 downloads this month
-
100 downloads total
-
- Score:
- 0.7
- Short URL:
- hashids.dub.pm