How to use create-hash - 9 common examples

To help you get started, we’ve selected a few create-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 KeySplit / dapp / src / Keysplit / wordEncode.js View on Github external
function deriveChecksumBits (entropyBuffer) {
  var ENT = entropyBuffer.length * 8
  var CS = ENT / 32
  var hash = createHash('sha256').update(entropyBuffer).digest()

  return bytesToBinary([].slice.call(hash)).slice(0, CS)
}
github bitshares / bitsharesjs / lib / ecc / src / hash.js View on Github external
function ripemd160(data) {
    return createHash("rmd160")
        .update(data)
        .digest();
}
github steemit / steem-js / src / auth / ecc / src / hash.js View on Github external
function sha256(data, encoding) {
    return createHash('sha256').update(data).digest(encoding)
}
github steemit / steem-js / src / auth / ecc / src / hash.js View on Github external
function sha1(data, encoding) {
    return createHash('sha1').update(data).digest(encoding)
}
github irislib / iris-lib / src / util.js View on Github external
getHash: function(str, format = `base64`) {
    if (!str) {
      return undefined;
    }
    const hash = createHash(`sha256`);
    hash.update(str);
    return hash.digest(format);
  },
github oipwg / oip-hdmw / src / util.js View on Github external
function ripemd160 (buffer) {
  return createHash('rmd160').update(buffer).digest()
}
github oipwg / oip-hdmw / src / util.js View on Github external
function sha256 (buffer) {
  return createHash('sha256').update(buffer).digest()
}
github LedgerHQ / ledgerjs / packages / hw-app-btc / src / Btc.js View on Github external
hashPublicKey(buffer: Buffer) {
    return createHash("rmd160")
      .update(
        createHash("sha256")
          .update(buffer)
          .digest()
      )
      .digest();
  }
github LedgerHQ / ledgerjs / packages / hw-app-btc / src / Btc.js View on Github external
hashPublicKey(buffer: Buffer) {
    return createHash("rmd160")
      .update(
        createHash("sha256")
          .update(buffer)
          .digest()
      )
      .digest();
  }

create-hash

create hashes for browserify

MIT
Latest version published 7 years ago

Package Health Score

76 / 100
Full package analysis

Popular create-hash functions