Socket
Socket
Sign inDemoInstall

side-channel

Package Overview
Dependencies
13
Maintainers
1
Versions
6
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    side-channel

Store information about any JS value in a side channel. Uses WeakMap if available.


Version published
Weekly downloads
40M
decreased by-1.41%
Maintainers
1
Install size
337 kB
Created
Weekly downloads
 

Package description

What is side-channel?

The side-channel npm package is designed to provide mechanisms for securely handling and transmitting sensitive information within a JavaScript environment. It is particularly useful in contexts where preventing information leakage is critical, such as in cryptographic operations or when handling personal data. The package offers functionalities to create secure channels for data, ensuring that the data is not exposed to unintended scopes or leaked through side channels.

What are side-channel's main functionalities?

Creating a secure side channel

This feature allows the creation of a secure side channel where you can safely store and retrieve data. The `set` method is used to store data associated with a given key, ensuring that the data is not accessible outside the intended scope.

const SideChannel = require('side-channel');
const channel = new SideChannel();
channel.set(key, value);

Retrieving data from a secure side channel

This code snippet demonstrates how to retrieve data from a secure side channel. The `get` method is used to access the data associated with a specific key, ensuring that the operation is safe and the data integrity is maintained.

const value = channel.get(key);

Other packages similar to side-channel

Changelog

Source

v1.0.6 - 2024-02-29

Commits

  • add types 9beef66
  • [meta] simplify exports 4334cf9
  • [Deps] update call-bind d6043c4
  • [Dev Deps] update tape 6aca376

Readme

Source

side-channel

Store information about any JS value in a side channel. Uses WeakMap if available.

Keywords

FAQs

Last updated on 29 Feb 2024

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.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc