JSPM

secure-hash

1.0.0
  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 1
  • Score
    100M100P100Q34901F
  • License MIT

Secure hash algorithms like md5, sha1, sha2

Package Exports

  • secure-hash

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (secure-hash) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

node-secure-hash

nodejs crypto secure hash collection, just a wrapper of crypto.

Install

npm install secure-hash

API

class SecureHash {
    static md5(data, format='hex');
    static sha1(data, format='hex');
    static sha256(data, format='hex');
}

Usage

SecureHash.sha1('The quick brown fox jumps over the lazy dog')

References