Created
October 7, 2019 18:27
-
-
Save deepal/f2687ee29a9f92272aa096201dde2c4f 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