Sha256: bfd0555063040de547a98928811c656879b5fa3c4a4f91e948eeb8f4b54830a1

Contents?: true

Size: 468 Bytes

Versions: 43

Compression:

Stored size: 468 Bytes

Contents

var exports = module.exports = function SHA (algorithm) {
  algorithm = algorithm.toLowerCase()

  var Algorithm = exports[algorithm]
  if (!Algorithm) throw new Error(algorithm + ' is not supported (we accept pull requests)')

  return new Algorithm()
}

exports.sha = require('./sha')
exports.sha1 = require('./sha1')
exports.sha224 = require('./sha224')
exports.sha256 = require('./sha256')
exports.sha384 = require('./sha384')
exports.sha512 = require('./sha512')

Version data entries

43 entries across 42 versions & 15 rubygems

Version Path
optimacms-0.1.61 spec/dummy/node_modules/sha.js/index.js
disco_app-0.18.0 test/dummy/node_modules/sha.js/index.js
disco_app-0.18.2 test/dummy/node_modules/sha.js/index.js
disco_app-0.16.1 test/dummy/node_modules/sha.js/index.js
disco_app-0.15.2 test/dummy/node_modules/sha.js/index.js
disco_app-0.18.4 test/dummy/node_modules/sha.js/index.js
disco_app-0.18.1 test/dummy/node_modules/sha.js/index.js
disco_app-0.12.7.pre.puma.pre.3 test/dummy/node_modules/sha.js/index.js
disco_app-0.14.0 test/dummy/node_modules/sha.js/index.js
disco_app-0.13.6.pre.puma.pre.3 test/dummy/node_modules/sha.js/index.js
tang-0.2.1 spec/tang_app/node_modules/sha.js/index.js
groonga-client-model-6.0.0 test/apps/rails6.0.3.5/node_modules/sha.js/index.js
groonga-client-model-6.0.0 test/apps/rails6.1.3/node_modules/sha.js/index.js
ruby2js-4.0.4 lib/tasks/testrails/node_modules/sha.js/index.js
ruby2js-4.0.3 lib/tasks/testrails/node_modules/sha.js/index.js
tang-0.2.0 spec/tang_app/node_modules/sha.js/index.js
tang-0.1.0 spec/tang_app/node_modules/sha.js/index.js
tang-0.0.9 spec/tang_app/node_modules/sha.js/index.js
enju_library-0.3.8 spec/dummy/node_modules/sha.js/index.js
ilog-0.4.1 node_modules/sha.js/index.js