Skip to main content
The Deno 2 Release Candidate is here
Learn more
Module

x/scrypt/lib/helpers.ts>to32bytes

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

Truncate input to 32 bytes Text will be encoded using UTF-8

Parameters

input: string | Uint8Array
  • data to truncate

Returns

Uint8Array
  • truncated data