sha1.js
function create() {
  var sha1sum = crypto.createHash('sha1');
  return { update: update, digest: digest };

  function update(data) {
    sha1sum.update(data);
  }

  function digest() {
    return sha1sum.digest('hex');
  }
}
function create() {
  var sha1sum = crypto.createHash('sha1');
  return { update: update, digest: digest };

  function update(data) {
    sha1sum.update(data);
  }

  function digest() {
    return sha1sum.digest('hex');
  }
}
function create ( ) { var sha1sum = crypto . createHash ( 'sha1' ) ; return { update : update , digest : digest } ; function update ( data ) { sha1sum . update ( data ) ; } function digest ( ) { return sha1sum . digest ( 'hex' ) ; } }
A streaming interface for when nothing is passed in.
A streaming interface for when nothing is passed in .