0.1.11 • Published 3 years ago
@highoutput/hash v0.1.11
@highoutput/hash
hash(message[,algorithm][,salt])
message
(string|Buffer)
Input messageopts.algorithm
(string)
Algorithmopts.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' });