crypto-browserify
Advanced tools
Comparing version 0.0.0 to 0.0.1
@@ -29,2 +29,3 @@ var sha = require('./sha') | ||
s += data | ||
return this | ||
}, | ||
@@ -31,0 +32,0 @@ digest: function (enc) { |
@@ -5,3 +5,3 @@ { | ||
"description": "partial implementation of crypto for the browser", | ||
"version": "0.0.0", | ||
"version": "0.0.1", | ||
"homepage": "https://github.com/dominictarr/crypto-browserify", | ||
@@ -8,0 +8,0 @@ "repository": { |
@@ -15,6 +15,4 @@ var crypto = require('crypto') | ||
assertSame(function (crypto, cb) { | ||
var h = crypto.createHash('sha1') | ||
h.update('hello', 'utf-8') | ||
cb(null, h.digest('hex')) | ||
cb(null, crypto.createHash('sha1').update('hello', 'utf-8').digest('hex')) | ||
}) | ||
8447
255