Skip to content
pubscout

libsignal

9.0.1, released 9 days ago by an unverified publisher

Dart wrapper for libsignal providing Signal Protocol end-to-end encryption.

WASM-readyCopyleft licenseUnverified publisher
$ flutter pub add libsignal
Source repository

What it does

Provides Dart and Flutter bindings for libsignal, implementing the Signal Protocol for end-to-end encryption, sealed sender, group messaging, and cryptographic operations. It bridges native Rust code directly via Flutter Rust Bridge.

AI-written summary of version 9.0.0, based on the package's README and metadata. Report an inaccuracy

Use it when

  • You need Signal Protocol end-to-end encryption in a Dart or Flutter application.
  • You require secure group messaging or anonymous sealed sender features.

Skip it when

  • You only need basic hashing or standard TLS encryption without the Signal Protocol.
  • Your project cannot use AGPL-3.0 licensed dependencies.

Strengths

  • Direct native Rust integration via Flutter Rust Bridge for high performance.
  • Comprehensive implementation of the Signal Protocol including Double Ratchet and X3DH.

Weaknesses

  • Strict AGPL-3.0 license may restrict commercial usage depending on distribution.
  • Certain native features like registration and server-side backup are not implemented.

Setup

Kind
Pure Dart
Effort
Low
Code generation
No
Direct dependencies
4

Native libraries are downloaded automatically during build via Dart build hooks. No manual Rust toolchain is required for end users.

import 'package:libsignal/libsignal.dart';

void main() async {
  await LibSignal.init();
  final identity = IdentityKeyPair.generate();
  print('Identity public key: ${identity.publicKey.length} bytes');
  LibSignal.cleanup();
}

Alternatives

Packages that do the same job and could replace libsignal.

  • adb

    A Dart wrapper for interacting with the Android Debug Bridge (adb).

  • webcrypto

    Cross-platform implementation of Web Cryptography APIs for Dart.

  • libsignal_protocol_dart

    Pure Dart implementation of the Signal Protocol for end‑to‑end encrypted messaging.

  • openmls

    Dart wrapper for OpenMLS, a Rust implementation of the Messaging Layer Security (MLS) protocol.

Works with

Packages commonly used together with libsignal: ones it builds on, ones built on it, and its own family.