Skip to main content
Module

x/bcrypt/mod.ts

A port of jBCrypt to TypeScript for use as a Deno module
Go to Latest
import * as bcrypt from "https://deno.land/x/bcrypt@v0.2.4/mod.ts";

Functions

Check if a plaintext password matches a hash Requires --allow-net and --unstable flags

Check if a plaintext password matches a hash This function is blocking and computationally expensive but requires no additonal flags. Using the async variant is highly recommended.

Generates a salt using a number of log rounds Requires --allow-net and --unstable flags

Generates a salt using a number of log rounds This function is blocking and computationally expensive but requires no additonal flags. Using the async variant is highly recommended.

Generate a hash for the plaintext password Requires --allow-net and --unstable flags

Generate a hash for the plaintext password This function is blocking and computationally expensive but requires no additonal flags. Using the async variant is highly recommended.