Skip to main content
Module

x/scrypt/mod.ts>hash

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

Hash a password with scrypt. Outputs a string in scrypt format by default.

Parameters

password: string
  • Password that will be hashed
optional
parameters: ScryptParameters
  • Scrypt parameters (n, r and p) used for hashing.
optional
format: scryptFormat

Returns

string
  • Hash in the chosen format (scrypt by default)