Skip to main content
Module

x/scrypt/mod.ts>hash

🔑 Deno library for hashing passwords using scrypt
Go to Latest
function hash
import { hash } from "https://deno.land/x/scrypt@v4.3.2/mod.ts";

Hash a password with scrypt. Outputs a string in rscrypt format.

Parameters

password: string
  • Password that will be hashed
optional
parameters: ScryptParameters
  • Scrypt parameters (n, r and p) used for hashing.
optional
format: scryptFormat
  • log2 of the work factor N. Must be an integer between 1 and 63. Defaults to 14 (N=16384)

Returns

string
  • Hash in scrypt format