Skip to main content
Module

x/bcrypt/mod.ts>hash

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

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

Parameters

plaintext: string

The password to hash

optional
salt: string | undefined = [UNSUPPORTED]

Returns

Promise<string>

The hashed password