Skip to main content
Module

x/bcrypt/mod.ts

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

Functions

Check if a plaintext password matches a hash Requires the --allow-net flag

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 the --allow-net flag

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 the --allow-net flag

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.