Skip to main content
Using Deno in production at your company? Earn free Deno merch.
Give us feedback
Module

x/scrypt/lib/format.ts>detectFormat

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

Guess the format of a hash based on its prefix It's technically possible for the raw hash to start with a colliding prefix, but it's very unlikely

Parameters

formattedHash: string
  • formatted hash to check the format of

Returns

  • detected format of the hash