Skip to content

Instantly share code, notes, and snippets.

@pepetox
Created Sep 10, 2020
Embed
What would you like to do?
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