Socket
Book a DemoInstallSign in
Socket

@alannxd/libsignal-node

Package Overview
Dependencies
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@alannxd/libsignal-node

Open Whisper Systems' libsignal for Node.js

latest
Source
npmnpm
Version
2.0.1
Version published
Weekly downloads
90
-62.5%
Maintainers
1
Weekly downloads
 
Created
Source

@alannxd/libsignal-node

A secure ratcheting forward secrecy protocol implementation for Node.js, designed for both synchronous and asynchronous messaging environments.
Based on the libsignal-protocol-javascript library.

npm version license

Overview

The Signal Protocol is a session-oriented cryptographic protocol providing end-to-end encryption with forward secrecy.
It enables secure communication in both real-time (synchronous) and offline (asynchronous) messaging scenarios.

PreKeys

The protocol introduces the concept of PreKeys, which are:

  • An ECPublicKey (Elliptic Curve public key)
  • An associated unique ID

These are stored on the server and can be unsigned or signed.

During installation:

  • Generate one signed PreKey.
  • Generate a batch of unsigned PreKeys.
  • Upload all keys to the server.

Sessions

Once established, a session is reused for all encryption/decryption.
It remains active indefinitely unless explicitly replaced.

Two ways to establish sessions:

  • PreKey Bundles — Retrieve a recipient's PreKeyBundle from the server.
  • PreKey Signal Messages — Receive a PreKeySignalMessage from a recipient and use it to start a session.

State Management

Persistent session state must be maintained throughout its lifecycle:

  • Identity State — Your own identity key pair and keys from others.
  • PreKey State — Unsigned PreKeys generated by the client.
  • Signed PreKey State — Signed PreKeys generated by the client.
  • Session State — Session records for secure communication.

Installation

npm install @alannxd/libsignal-node

License

Licensed under the GNU GPLv3 http://www.gnu.org/licenses/gpl-3.0.html

2015–2016 Open Whisper Systems

2017–2018 Forsta Inc

Keywords

signal

FAQs

Package last updated on 12 Aug 2025

Did you know?

Socket

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