Skip to main content
Module

x/bcrypt/main.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.1/main.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