fb-tiger-hash
v1.0.0
Published
Native JS implementation of the Tiger hash. Optionally supports flipped byte ordering found in PHP-5.3
Downloads
4,054
Readme
fb-tiger-hash
A Native JS implementation of Tiger hash.
Provides a cross-platform Tiger hash implementation that supports the flipped byte-order (endianness) of PHP's original Tiger implementation for backwards compatability.
See its use in HHVM
It's main intended use is for the Facebook FBT internationalization framework, where a hashing algorithm is supplied to create unique identifiers from source strings and their descriptions.
NOTE: This implementation is not optimized for reading large blocks of
data or streams. It both expects a simple string AND loads the entire
input into memory in a Buffer
.
More on the Tiger algorithm:
- https://www.cs.technion.ac.il/~biham/Reports/Tiger/tiger/node3.html
- https://www.cl.cam.ac.uk/~rja14/Papers/tiger.pdf