Skip to main content
Home

Built and signed on GitHub Actions

Works with
This package works with Cloudflare Workers, Node.js, Deno, Bun, Browsers
This package works with Cloudflare Workers
This package works with Node.js
This package works with Deno
This package works with Bun
This package works with Browsers
JSR Score100%
Downloads1/wk
Publisheda year ago (0.2.0)

The secrets module provides a secret generator, a secret masker, a Vault interface, and two vault implementations: json and memory.

default

Overview

c
DefaultSecretMasker

Represents a secret masker that can be used to mask sensitive information in strings.

f
generateSecret

Generates a secret string of the specified length using the given characters. If no characters are provided, the default character set will be used.

f
normalizeKey

Normalizes a key by replacing special characters with a delimiter or hyphen-minus.

v
secretGenerator

The default global secret generator used to create cryptographically random secrets.

I
SecretMasker

Represents a SecretMasker interface.

v
secretMasker

Represents a secret masker that can be used to mask sensitive information in strings.

f
validate

Validates whether the given data meets the password requirements. The password must contain at least one digit, one uppercase letter, one lowercase letter, and one special character.

f
generateSecret

Generates a secret string of the specified length using the given characters. If no characters are provided, the default character set will be used.

v
secretGenerator

The default global secret generator used to create cryptographically random secrets.

f
validate

Validates whether the given data meets the password requirements. The password must contain at least one digit, one uppercase letter, one lowercase letter, and one special character.

c
DefaultSecretMasker

Represents a secret masker that can be used to mask sensitive information in strings.

I
SecretMasker

Represents a SecretMasker interface.

v
secretMasker

Represents a secret masker that can be used to mask sensitive information in strings.

f
normalizeKey

Normalizes a key by replacing special characters with a delimiter or hyphen-minus.

Report package

Please provide a reason for reporting this package. We will review your report and take appropriate action.

Please review the JSR usage policy before submitting a report.