|
@ -1,9 +1,9 @@ |
|
|
'use strict'; |
|
|
|
|
|
|
|
|
|
|
|
var crypto = require('crypto'); |
|
|
var crypto = require('crypto'); |
|
|
var bignum = require('bignum'); |
|
|
var bignum = require('bignum'); |
|
|
var Binary = require('binary'); |
|
|
var Binary = require('binary'); |
|
|
var Put = require('bufferput'); |
|
|
var Put = require('bufferput'); |
|
|
|
|
|
require('buffertools').extend(); |
|
|
|
|
|
|
|
|
var sha256 = exports.sha256 = function (data) { |
|
|
var sha256 = exports.sha256 = function (data) { |
|
|
return new Buffer(crypto.createHash('sha256').update(data).digest('binary'), 'binary'); |
|
|
return new Buffer(crypto.createHash('sha256').update(data).digest('binary'), 'binary'); |
|
|