Skip to main content
The Deno 2 Release Candidate is here
Learn more
Module

x/justaos_utils/packages/common-utils/deps.ts>bcrypt.genSaltSync

Common utility functions used across projects
Go to Latest
function bcrypt.genSaltSync
import { bcrypt } from "https://deno.land/x/justaos_utils@v1.9.0/packages/common-utils/deps.ts";
const { genSaltSync } = bcrypt;

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]

Number of log rounds to use. Recommended to leave this undefined.

Returns

string

The generated salt