Socket
Socket
Sign inDemoInstall

side-channel

Package Overview
Dependencies
64
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
37M
decreased by-8.95%
Maintainers
1
Install size
1.74 MB
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.3 - 2020-08-23

Commits

  • [Dev Deps] update eslint, @ljharb/eslint-config, aud, auto-changelog, tape 1f10561
  • [Deps] update es-abstract, object-inspect bc20159
  • [Dev Deps] update @ljharb/eslint-config, tape b9b2b22
  • [Dev Deps] update eslint, @ljharb/eslint-config, tape 7055ab4
  • [Dev Deps] update auto-changelog; add aud d278c37
  • [actions] switch Automatic Rebase workflow to pull_request_target event 3bcf982
  • [Tests] only audit prod deps 18d01c4
  • [Deps] update es-abstract 6ab096d
  • [Dev Deps] update tape 9dc174c
  • [Deps] update es-abstract 431d0f0
  • [Deps] update es-abstract 49869fd
  • [meta] Add package.json to package's exports 77d9cdc

Readme

Source

side-channel

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

Keywords

FAQs

Last updated on 23 Aug 2020

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