| 1 2 3 4 5 6 7 8 9 10 11 | 1× 1× 21× 1× | const crypto = require("crypto");
/**
* Returns a SHA1 hash of the given string.
*/
function makeHash(string) {
return crypto.createHash("sha1").update(string).digest("hex");
}
module.exports = makeHash;
|