-
-
Save dpjayasekara/c73d3ed21d1502f787b3266bce82b9d3 to your computer and use it in GitHub Desktop.
BCrypt server with sync bcrypt function
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
const express = require('express'); | |
const encrypt = require('./encrypt'); | |
const app = express(); | |
app.get('/', (req, res, next) => { | |
const enc = encrypt(req.query.text); | |
res.status(200).send(enc); | |
}); | |
app.listen(8080); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment