
Product
Announcing Socket Fix 2.0
Socket Fix 2.0 brings targeted CVE remediation, smarter upgrade planning, and broader ecosystem support to help developers get to zero alerts.
@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).
The npm package @basis-theory/basis-theory-js-encryption-browser receives a total of 3 weekly downloads. As such, @basis-theory/basis-theory-js-encryption-browser popularity was classified as not popular.
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.
Product
Socket Fix 2.0 brings targeted CVE remediation, smarter upgrade planning, and broader ecosystem support to help developers get to zero alerts.
Security News
Socket CEO Feross Aboukhadijeh joins Risky Business Weekly to unpack recent npm phishing attacks, their limited impact, and the risks if attackers get smarter.
Product
Socket’s new Tier 1 Reachability filters out up to 80% of irrelevant CVEs, so security teams can focus on the vulnerabilities that matter.