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

0.1.10 • Public • Published

@highoutput/hmac

hmac(message[,key][,algorithm])

  • message (string|Buffer) Input message
  • key (string|Buffer)
  • algorithm (string) Algorithm
  • Returns: (Promise<Buffer>)

Generate hash.

Examples

import { hmac } from 'highoutput-utilities';

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

Readme

Keywords

none

Package Sidebar

Install

npm i @highoutput/hmac

Weekly Downloads

1

Version

0.1.10

License

MIT

Unpacked Size

3.5 kB

Total Files

7

Last publish

Collaborators

  • ccpacillos
  • rrmadjos
  • glvnzn
  • highoutputventures
  • highoutputdev