
Product
Introducing Webhook Events for Alert Changes
Add real-time Socket webhook events to your workflows to automatically receive software supply chain alert changes in real time.
@basis-theory/basis-theory-js-encryption-node
Advanced tools
Node (Crypto) Encryption Provider for the [Basis Theory](https://basistheory.com/) JS [Encryption SDK](https://github.com/Basis-Theory/basis-theory-js-encryption).
Node (Crypto) Encryption Provider for the Basis Theory JS Encryption SDK.
Using Node Package Manager
npm install --save @basis-theory/basis-theory-js-encryption-node
Using Yarn
yarn add @basis-theory/basis-theory-js-encryption-node
For further documentation and examples, please refer to our Docs.
import { BasisTheoryEncryption } from '@basis-theory/basis-theory-js-encryption';
import { BasisTheoryNodeEncryptionProvider } from '@basis-theory/basis-theory-js-encryption-node';
const nodeProvider = new BasisTheoryNodeEncryptionProvider();
const btEncryption = await new BasisTheoryEncryption().init([nodeProvider]);
The default cache implementation uses node-cache, but users can implement their own from the interface.
Local Key Repository and Provider Key Repository implementations are provider for testing.
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 { BasisTheoryNodeEncryptionProvider } from '@basis-theory/basis-theory-js-encryption-node';
const nodeProvider = new BasisTheoryNodeEncryptionProvider().init({
cache: new MyCacheService(),
keyRepository: new MyKeyRepository(),
providerKeyRepository: new MyProviderKeyRepository(),
rsaKeySize: 2048,
});
const btEncryption = await new BasisTheoryEncryption().init([nodeProvider]);
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
Node (Crypto) 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-node 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
Add real-time Socket webhook events to your workflows to automatically receive software supply chain alert changes in real time.

Security News
ENISA has become a CVE Program Root, giving the EU a central authority for coordinating vulnerability reporting, disclosure, and cross-border response.

Product
Socket now scans OpenVSX extensions, giving teams early detection of risky behaviors, hidden capabilities, and supply chain threats in developer tools.