@highoutput/hash
TypeScript icon, indicating that this package has built-in type declarations

0.1.11 • Public • Published

@highoutput/hash

hash(message[,algorithm][,salt])

  • message (string|Buffer) Input message
  • opts.algorithm (string) Algorithm
  • opts.salt (string|Buffer)
  • opts.salt (string|Buffer)
  • Returns: (Promise<Buffer>)

Generate hash.

Examples

import { hash } from 'highoutput-utilities';

hash('The quick brown fox jumps over the lazy dog.');
hash('The quick brown fox jumps over the lazy dog.', { algorithm: 'sha256' });
hash('The quick brown fox jumps over the lazy dog.', { algorithm: 'sha256', salt: 'secretsalt' });

Readme

Keywords

none

Package Sidebar

Install

npm i @highoutput/hash

Weekly Downloads

0

Version

0.1.11

License

MIT

Unpacked Size

3.61 kB

Total Files

7

Last publish

Collaborators

  • ccpacillos
  • rrmadjos
  • glvnzn
  • highoutputventures
  • highoutputdev