Javascript String toSHA1()

Description

Javascript String toSHA1()

String.prototype.toSHA1 = function() {
  var md = forge.md.sha1.create();
  md.update(this);/*from   w ww . j  a v a 2  s . c om*/
  return md.digest().toHex();
}



PreviousNext

Related