Skip to content

Instantly share code, notes, and snippets.

@zackbloom
Created July 10, 2018 17:57
Show Gist options
  • Save zackbloom/c0064838cbf85e7b81df9d46900775bb to your computer and use it in GitHub Desktop.
Save zackbloom/c0064838cbf85e7b81df9d46900775bb to your computer and use it in GitHub Desktop.
import bcrypt from 'bcryptjs/dist/bcrypt.js'
export async function handleRequest(request) {
let salt = bcrypt.genSaltSync(12)
let hash = bcrypt.hashSync("fsadfas", salt)
return new Response(hash)
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment