CartoDB-SQL-API/app/utils/md5.js
2015-12-03 17:28:18 +01:00

10 lines
191 B
JavaScript

'use strict';
var crypto = require('crypto');
module.exports = function generateMD5(data){
var hash = crypto.createHash('md5');
hash.update(data);
return hash.digest('hex');
};