Skip to main content
Module

x/bcrypt/mod.ts>genSaltSync

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

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.

Parameters

optional
log_rounds: number | undefined = [UNSUPPORTED]

Returns

string

The generated salt