Description

A D implementation of the hashids library

Package Information

Version1.0.0 (2015-Oct-10)
Repositoryhttps://github.com/actimia/hashids-dlang
LicenseMIT
Copyright(c) 2015 Viking Edström
AuthorsViking Edström
Registered byViking Edström
Dependenciesnone

Installation

To use this package, put the following dependency into your project's dependencies section:

dub.json
dub.sdl

Readme

#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

Available versions

1.0.0 ~master