Nevar pievienot vairāk kā 25 tēmas Tēmai ir jāsākas ar burtu vai ciparu, tā var saturēt domu zīmes ('-') un var būt līdz 35 simboliem gara.

index.js 468B

123456789101112131415
  1. var exports = module.exports = function SHA (algorithm) {
  2. algorithm = algorithm.toLowerCase()
  3. var Algorithm = exports[algorithm]
  4. if (!Algorithm) throw new Error(algorithm + ' is not supported (we accept pull requests)')
  5. return new Algorithm()
  6. }
  7. exports.sha = require('./sha')
  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')