How to use fb-tiger-hash - 1 common examples

To help you get started, we’ve selected a few fb-tiger-hash examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github facebookincubator / fbt / packages / fb-tiger-hash / src / __tests__ / sample.ts View on Github external
/**
 * Copyright (c) Facebook, Inc. and its affiliates.
 */
import {Tiger, hashPhrases} from 'fb-tiger-hash'

hashPhrases([{
  desc: "d",
  texts: ["a", "b", "c"]
}]);

(new Tiger(Tiger.L128, 0, true, Tiger.UTF8)).hash('foo');

fb-tiger-hash

Native JS implementation of the Tiger hash. Optionally supports flipped byte ordering found in PHP-5.3

MIT
Latest version published 3 years ago

Package Health Score

59 / 100
Full package analysis

Popular fb-tiger-hash functions