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
37M
decreased by-8.95%
Maintainers
1
Install size
332 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.5 - 2024-02-06

Commits

  • [actions] reuse common workflows 3d2e1ff
  • [meta] use npmignore to autogenerate an npmignore file 04296ea
  • [meta] add .editorconfig; add eclint 130f0a6
  • [Dev Deps] update eslint, @ljharb/eslint-config, aud, auto-changelog, safe-publish-latest, tape d480c2f
  • [Dev Deps] update eslint, @ljharb/eslint-config, aud, auto-changelog, tape ecbe70e
  • [actions] update rebase action 75240b9
  • [Dev Deps] update @ljharb/eslint-config, aud, npmignore, tape ae8d281
  • [Dev Deps] update @ljharb/eslint-config, aud, tape 7125b88
  • [Deps] update call-bind, get-intrinsic, object-inspect 82577c9
  • [Deps] update call-bind, get-intrinsic, object-inspect 550aadf
  • [Tests] increase coverage 5130877
  • [Deps] update get-intrinsic, object-inspect ba0194c
  • [meta] add missing engines.node 985fd24
  • [Refactor] use es-errors, so things that only need those do not need get-intrinsic 40227a8
  • [Deps] update get-intrinsic a989b40
  • [Deps] update object-inspect aec42d2

Readme

Source

side-channel

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

Keywords

FAQs

Last updated on 06 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