コード例 #1
0
ファイル: app.js プロジェクト: ebuenclemente205/sidelinesv2
  module.exports = function (message, options) {
    if(typeof message == 'undefined')
      return;

    var digestbytes = crypt.wordsToBytes(md5(message, options));
    return options && options.asBytes ? digestbytes :
        options && options.asString ? bin.bytesToString(digestbytes) :
        crypt.bytesToHex(digestbytes);
  };
コード例 #2
0
  module.exports = function (message, options) {
    if (message === undefined || message === null)
      throw new Error('Illegal argument ' + message);

    var digestbytes = crypt.wordsToBytes(md5(message, options));
    return options && options.asBytes ? digestbytes :
        options && options.asString ? bin.bytesToString(digestbytes) :
        crypt.bytesToHex(digestbytes);
  };
コード例 #3
0
ファイル: md5.js プロジェクト: DrJaxx/KidMonstar
 module.exports = function (message, options) {
   var digestbytes = crypt.wordsToBytes(md5(message));
   return options && options.asBytes ? digestbytes :
       options && options.asString ? bin.bytesToString(digestbytes) :
       crypt.bytesToHex(digestbytes);
 };