Skip to main content
Module

x/bcrypt/mod.ts>genSalt

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

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

Parameters

optional
log_rounds: number | undefined = [UNSUPPORTED]

Returns

Promise<string>

The generated salt