How to use the crypto-hash.sha1 function in crypto-hash

To help you get started, we’ve selected a few crypto-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 samuelmaddock / metastream / app / renderer / license.ts View on Github external
export async function getLicenseHash(): Promise {
  const license = getLicense()
  if (license) {
    return await sha1(license)
  }
}

crypto-hash

Tiny hashing module that uses the native crypto API in Node.js and the browser

MIT
Latest version published 5 months ago

Package Health Score

72 / 100
Full package analysis

Popular crypto-hash functions