Javascript String md5()

Description

Javascript String md5()


var crypto = require("crypto")
  , Helper = {}/*w w  w .j a va 2  s.c  o  m*/
;

String.prototype.md5 = function() {
  return crypto.createHash("md5").update(this.toString()).digest("hex");
}

module.exports = Helper;



PreviousNext

Related