Created
July 10, 2018 17:57
-
-
Save zackbloom/c0064838cbf85e7b81df9d46900775bb to your computer and use it in GitHub Desktop.
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
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