Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
Download
80538 views
1
var exports = module.exports = function (alg) {
2
var Alg = exports[alg.toLowerCase()]
3
if(!Alg) throw new Error(alg + ' is not supported (we accept pull requests)')
4
return new Alg()
5
}
6
7
8
exports.sha1 = require('./sha1')
9
exports.sha224 = require('./sha224')
10
exports.sha256 = require('./sha256')
11
exports.sha384 = require('./sha384')
12
exports.sha512 = require('./sha512')
13
14