Skip to content

Instantly share code, notes, and snippets.

@pepetox
Created September 10, 2020 06:44
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save pepetox/791902b1828a5d92dbc029b78b79c39f to your computer and use it in GitHub Desktop.
Save pepetox/791902b1828a5d92dbc029b78b79c39f to your computer and use it in GitHub Desktop.
Function to encode md5
var md5 = require('md5');
exports.md5en = (req, res) => {
res.status(200).json({"hash":md5(req.query.message)});
};
{
"name": "encode-md5",
"version": "0.0.1",
"dependencies": {
"md5": "^2.3.0"
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment