
Security News
Google’s OSV Fix Just Added 500+ New Advisories — All Thanks to One Small Policy Change
A data handling bug in OSV.dev caused disputed CVEs to disappear from vulnerability feeds until a recent fix restored over 500 advisories.
@basis-theory/basis-theory-js-encryption-browser
Advanced tools
Browser (Subtle) Encryption Provider for the [Basis Theory](https://basistheory.com/) JS [Encryption SDK](https://github.com/Basis-Theory/basis-theory-js-encryption).
Browser (Subtle) Encryption Provider for the Basis Theory JS Encryption SDK.
Using Node Package Manager
npm install --save @basis-theory/basis-theory-js-encryption-browser
Using Yarn
yarn add @basis-theory/basis-theory-js-encryption-browser
For further documentation and examples, please refer to our Docs.
Browser Encryption depends on window
, usage is restrained to client-side frameworks.
import { BasisTheoryEncryption } from '@basis-theory/basis-theory-js-encryption';
import { BasisTheoryBrowserEncryptionProvider } from '@basis-theory/basis-theory-js-encryption-browser';
const browserProvider = new BasisTheoryBrowserEncryptionProvider();
const btEncryption = await new BasisTheoryEncryption().init([browserProvider]);
Local Key Repository and Provider Key Repository implementations are provided for testing using the browser's localStorage
.
It's expected that the user provides their own repository implementations through the init
call.
import { BasisTheoryEncryption } from '@basis-theory/basis-theory-js-encryption';
import { BasisTheoryBrowserEncryptionProvider } from '@basis-theory/basis-theory-js-encryption-browser';
const browserProvider = new BasisTheoryBrowserEncryptionProvider().init({
keyRepository: new MyKeyRepository(),
providerKeyRepository: new MyProviderKeyRepository(),
rsaKeySize: 2048,
});
const btEncryption = await new BasisTheoryEncryption().init([browserProvider]);
The provided scripts with the SDK will check for all dependencies, build the solution, and run all tests.
Run the following command from the root of the project:
make verify
FAQs
Browser (Subtle) Encryption Provider for the [Basis Theory](https://basistheory.com/) JS [Encryption SDK](https://github.com/Basis-Theory/basis-theory-js-encryption).
We found that @basis-theory/basis-theory-js-encryption-browser demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 10 open source maintainers collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
A data handling bug in OSV.dev caused disputed CVEs to disappear from vulnerability feeds until a recent fix restored over 500 advisories.
Research
/Security News
175 malicious npm packages (26k+ downloads) used unpkg CDN to host redirect scripts for a credential-phishing campaign targeting 135+ organizations worldwide.
Security News
Python 3.14 adds template strings, deferred annotations, and subinterpreters, plus free-threaded mode, an experimental JIT, and Sigstore verification.