Created
September 10, 2020 06:44
-
-
Save pepetox/791902b1828a5d92dbc029b78b79c39f to your computer and use it in GitHub Desktop.
Function to encode md5
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var md5 = require('md5'); | |
exports.md5en = (req, res) => { | |
res.status(200).json({"hash":md5(req.query.message)}); | |
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"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