Skip to main content
Deno 2 is finally here ๐ŸŽ‰๏ธ
Learn more
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.1/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