0.1.3 • Published 2 years ago

uncrypto v0.1.3

Weekly downloads
-
License
MIT
Repository
github
Last release
2 years ago

uncrypto

npm version npm downloads Github Actions Codecov

This library provides a single api to use web-crypto and Subtle Crypto in both Node.js using Crypto Module and Web targets using Web Crypto API using Conditional Exports.

Requirements:

  • Node.js: Version 15 and above (this library provides no polyfills for older versions!)
  • Browser: Secure Context (HTTPS/Localhost) in Supported Browsers
  • Other Runtimes: Exposed globalThis.crypto and globalThis.crypto.subtle. (you can polyfill if neeeded)

Usage

Install package:

# npm
npm install uncrypto

# yarn
yarn add uncrypto

# pnpm
pnpm install uncrypto

Import:

// ESM
import { subtle, randomUUID, getRandomValues } from "uncrypto";

// CommonJS
const { subtle, randomUUID, getRandomValues } = require("uncrypto");

Development

  • Clone this repository
  • Install latest LTS version of Node.js
  • Enable Corepack using corepack enable
  • Install dependencies using pnpm install
  • Run interactive tests using pnpm dev

License

Made with 💛

Published under MIT License.

@everything-registry/sub-chunk-3010@itpropro/nuxt-oidc-authnuxt-oidc-ssr-authxipher@coverbase/nuxt-authbetter-auth-uuidv4iron-session@farnabaz/core@tsvx/vue-loader@ourongxing/nitro@ourongxing/nitropacktehmusimhujanunjs-rekit@arrirpc/schema@arrirpc/server@atinux/nuxthub@auth0/mdl@banjoanton/utils@axxy/nuxt@byu-oit-sdk/credential-provider@byu-oit-sdk/middleware-retry@aabelmann/ui-layer@danizean/cyberzonezona-x@dworks/nuxt-auth-utils@eckidevs/cf-pbkdf2@hebilicious/h3@hebilicious/nitro@inkbird-io/nuxt-auth-utils@lmoesle/nuxt-auth-utils@myshkouski/web-crypto@nolebase/vitepress-plugin-thumbnail-hash@nolebase/vitepress-plugin-git-changelog@joyid/ckb@kinde-oss/kinde-typescript-sdk@kinde-oss/kinde-auth-nextjs@profilecity/unstorage-s3-driver@scayle/storefront-core@scayle/storefront-nuxt@scayle/h3-session@onehop/js@portal-sdk/react@nuxthub/core@nuxt/schema-nightly@nuxt/schema@shelve/crypto@rigo-m/nitropacknuxtpaginationsnuxtnuxt3nuxt-with-fixed-cachenuxt-auth-utilsnuxt-auth-utils-xnuxt-auth-corenuxt-nightlynuxt-oidc-authnuxt-oidc-auth-floupatepangdeuisedanbosokroutupnitro-gonitro-nightlynitropack-edgenitropackpileuleuyantearefinejs-reporaj-nuxt3-oidc-authslip39-tsslip-auth-coreshowgalleryhar-sanitizerh3h3-nightlymangudinlagirajinloading-animated@wunderwerk/next-stateless-session@wunderwerk/next-session-cookie@wouldyou/better-auth@wristband/cloudflare-workers-auth@wristband/express-auth@wristband/nextjs-auth@theprincelle/auth-utils@unjsio/kvdb@tomw2w/my-nuxt-layer@trigger.dev/sdk@vinxi/h3@streamerbot/clientanakketigaanaklanangteaanakwadonteaaegis-authadfs-authadfs-auth-forkazurency-auth-utilsarri-validatecrosswscrypto-primitivescrypto-sealcyberzonedesign-system-trial-milyasbpa
0.1.3

2 years ago

0.1.2

2 years ago

0.1.1

2 years ago

0.1.0

2 years ago