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');
	}
}
var uuid = require('node-uuid')

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');
	}
}

generateUniqueHashID: function() {
  return uuid.v1()
 }

Add unique hash generator function