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

x/justaos_utils/packages/common-utils/deps.ts

Common utility functions used across projects
Go to Latest
import * as justaosUtils from "https://deno.land/x/justaos_utils@v1.9.0/packages/common-utils/deps.ts";

Namespaces

Generators and validators for UUIDs for versions v1, v3, v4 and v5.

Variables

Name string is a fully-qualified domain name.

Name string is an ISO OID.

Name string is a URL.

Name string is an X.500 DN (in DER or a text output format).

The nil UUID is special form of UUID that is specified to have all 128 bits set to zero.

Functions

Check if a plaintext password matches a hash Requires the --allow-net flag

Check if a plaintext password matches a hash This function is blocking and computationally expensive but requires no additonal flags. Using the async variant is highly recommended.

Generates a salt using a number of log rounds Requires the --allow-net flag

Generates a salt using a number of log rounds This function is blocking and computationally expensive but requires no additonal flags. Using the async variant is highly recommended.

Generate a hash for the plaintext password Requires the --allow-net flag

Generate a hash for the plaintext password This function is blocking and computationally expensive but requires no additonal flags. Using the async variant is highly recommended.

Check if the passed UUID is the nil UUID.

Generates a RFC4122 v1 UUID (time-based).

Validates the UUID v1.

Generate a RFC4122 v3 UUID (MD5 namespace).

Validate that the passed UUID is an RFC4122 v3 UUID.

Validate that the passed UUID is an RFC4122 v4 UUID.

Generate a RFC4122 v5 UUID (SHA-1 namespace).

Validate that the passed UUID is an RFC4122 v5 UUID.

Test a string to see if it is a valid UUID.

Detect RFC version of a UUID.

Interfaces

The options used for generating a v1 UUID in generate.