Skip to main content
Module

x/scrypt/mod.ts>verify

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

Checks provided string against provided hash

Parameters

password: string
  • string that will be checked against the hash
testedHash: string
  • hash in a compatible format (scrypt and phc formats supported for now)
optional
format: scryptFormat
  • format of the tested hash. Will attempt to detect it automatically if it's not provided.

Returns

boolean

result of the check, true if the password matches the hash