Skip to content

The pull request associated with this fork turns five years old August 16th, 2024.

License

Notifications You must be signed in to change notification settings

echozio/hashids-dlang

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

#D Hashids A D port of hashids, a library for encoding integer sequences as opaque, url-friendly blobs. All feedback/pull requests are welcome. ###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)

###Installation Either fork/clone this Github project, or add this project as a DUB dependency like this:

"dependencies": {
    "hashids": ">=1.0.0"
}

###Contact Either through Github issues/PRs or @actim1a on Twitter.

###Acknowledgements

About

The pull request associated with this fork turns five years old August 16th, 2024.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • D 100.0%