desirae.js/lib/deardesi-node.js

10 lines
213 B
JavaScript
Raw Normal View History

2015-01-05 19:23:26 +00:00
'use strict';
var PromiseA = require('bluebird').Promise
, secretutils = require('secret-utils')
;
module.exports.sha1sum = function (str) {
return PromiseA.resolve( secretutils.hashsum('sha1', str) );
};