fb-tiger

v0.0.6
Provides a cross-platform Tiger hash implementation that supports the flipped byte-order (endianness) of PHP's original Tiger implementation for backwards compatability.

fb-tiger

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.

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. This implementation is not optimized for reading large blocks of data in streams, but optimized for the FBT framework's use-case.

See: [https://github.com/facebook/hhvm/blob/281303d/hphp/runtime/ext/hash/ext_hash.cpp#L94-L97](use in HHVM)

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 https://www.cl.cam.ac.uk/~rja14/Papers/tigersb.pdf

Implementation in C: https://www.cs.technion.ac.il/~biham/Reports/Tiger/tiger/node7.html

npm i fb-tiger

Metadata

  • MIT
  • >= 10.4.0
  • Unknown
  • released 9/29/2019

Downloads

Maintainers