2020-11-09 03:01:26 +00:00
|
|
|
"use strict";
|
2015-01-05 19:23:26 +00:00
|
|
|
|
2020-11-09 03:16:55 +00:00
|
|
|
var secretutils = require("secret-utils");
|
|
|
|
|
2015-01-05 19:23:26 +00:00
|
|
|
module.exports.sha1sum = function (str) {
|
2020-11-09 03:16:55 +00:00
|
|
|
return Promise.resolve(secretutils.hashsum("sha1", str));
|
2015-01-05 19:23:26 +00:00
|
|
|
};
|