Skip to main content
Module

x/scrypt/deps.ts

🔑 Deno library for hashing passwords using scrypt
Go to Latest
import * as scrypt from "https://deno.land/x/scrypt@v4.3.2/deps.ts";

Variables

An wrapper for WebCrypto adding support for additional non-standard algorithms, but delegating to the runtime WebCrypto implementation whenever possible.

Functions

Make an assertion, error will be thrown if expr does not have truthy value.

Make an assertion that actual and expected are equal, deeply. If not deeply equal, then throw.

Decodes a base64-encoded string.

Decodes the given hex-encoded string. If the input is malformed, an error is thrown.

Converts data into a base64-encoded string.

Converts data into a hex-encoded string.

When checking the values of cryptographic hashes are equal, default comparisons can be susceptible to timing based attacks, where attacker is able to find out information about the host system by repeatedly checking response times to equality comparisons of values.