source: node_modules/sha.js/index.js@ 65b6638

main
Last change on this file since 65b6638 was d24f17c, checked in by Aleksandar Panovski <apano77@…>, 15 months ago

Initial commit

  • Property mode set to 100644
File size: 468 bytes
Line 
1var exports = module.exports = function SHA (algorithm) {
2 algorithm = algorithm.toLowerCase()
3
4 var Algorithm = exports[algorithm]
5 if (!Algorithm) throw new Error(algorithm + ' is not supported (we accept pull requests)')
6
7 return new Algorithm()
8}
9
10exports.sha = require('./sha')
11exports.sha1 = require('./sha1')
12exports.sha224 = require('./sha224')
13exports.sha256 = require('./sha256')
14exports.sha384 = require('./sha384')
15exports.sha512 = require('./sha512')
Note: See TracBrowser for help on using the repository browser.