module.exports = {
  generateQueryString: function (data) {
    var ret = []
    for (var d in data)
      if (data[d])
        ret.push(encodeURIComponent(d) + "=" + encodeURIComponent(data[d]))
    return ret.join("&")
  },

  base64Encoding: function (data) {
    return new Buffer(data).toString('base64')
  },

  base64Decoding: function (data) {
    return new Buffer(data, 'base64')
  },
  
  getUnixTimeStamp: function () {
    return Math.floor((new Date).getTime() / 1000)
  },

  stringReplace: function (source, find, replace) {
    return source.replace(find, replace)
  },

  inputChecker: function (reqInput, whiteList) {
    var input = Object.keys(reqInput)
    if (input.length != whiteList.length)
      return false

    for (var i = 0; i < input.length; i++)
      if (whiteList.indexOf(input[i]) <= -1)
        return false
    
    return true
  }
}

@@ -676,65 +676,184 @@
     
-if (input.length != whiteList.length)%0A      return false%0A
+for (var i = 0; i %3C input.length; i++)%0A      if (whiteList.indexOf(input%5Bi%5D) %3C= -1)%0A        return false    %0A    return true%0A  %7D,%0A%0A  JSONIterator: function (input, validator) %7B
 %0A   
@@ -898,33 +898,33 @@
 )%0A      if (
-whiteList
+validator
 .indexOf(inp
@@ -958,21 +958,16 @@
 n false%0A
-    %0A
     retu
@@ -978,10 +978,11 @@
 rue%0A  %7D%0A
+%0A
 %7D%0A

Add JSON Iterator Method to Utility