0.1.10 • Published 4 years ago
@highoutput/hmac v0.1.10
@highoutput/hmac
hmac(message[,key][,algorithm])
message(string|Buffer)Input messagekey(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' });