Skip to content

Instantly share code, notes, and snippets.

@deepal
Created October 7, 2019 18:27
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save deepal/f2687ee29a9f92272aa096201dde2c4f to your computer and use it in GitHub Desktop.
Save deepal/f2687ee29a9f92272aa096201dde2c4f to your computer and use it in GitHub Desktop.
BCrypt server with sync bcrypt function
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