Skip to main content
Home

Built and signed on GitHub Actions

🧮 Features based upon Web Crypto APIs

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 Score
100%
Published
a week ago (2.0.5)
f
bytes

Convert hexadecimal string representation to bytes.

f
decrypt

Decrypt message encrypted by encrypt function with specified key.

f
encrypt

Encrypt message with key.

f
exportKey

Generate encryption key from seed and salt.

f
hash

Hash string and return hexadecimal string representation.

f
hex

Convert bytes to hexadecimal string representation.

f
importKey

Convert encryption key to CryptoKey.

f
otpauth

Returns an URL that can be used to be added in a authenticator application.

f
otpsecret

Issue a new Time-based OTP secret.

f
totp

Returns a Time-based OTP.

f
verify

Verify Time-based OTP.

encryption

This module contains a symmetric encryption (using AES-GCM 256 with a PBKDF2 derived key) function.

f
bytes

Convert hexadecimal string representation to bytes.

f
decrypt

Decrypt message encrypted by encrypt function with specified key.

f
encrypt

Encrypt message with key.

f
exportKey

Generate encryption key from seed and salt.

f
hash

Hash string and return hexadecimal string representation.

f
hex

Convert bytes to hexadecimal string representation.

f
importKey

Convert encryption key to CryptoKey.

totp

Time-based One-Time Password (TOTP) library.

f
otpauth

Returns an URL that can be used to be added in a authenticator application.

f
otpsecret

Issue a new Time-based OTP secret.

f
totp

Returns a Time-based OTP.

f
verify

Verify Time-based OTP.

New Ticket: 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.