pqforge
0.4.14, released 11 days ago by yardenah.com
Pure-Dart post-quantum cryptography for ML-KEM, ML-DSA, SLH-DSA, and HPKE.
What it does
Provides post-quantum encryption, decryption, digital signatures, and key encapsulation mechanisms (ML-KEM, ML-DSA, SLH-DSA, and RFC 9180 HPKE) for Dart and Flutter. Includes streaming file support and a command-line interface.
AI-written summary of version 0.4.14, based on the package's README and metadata. Report an inaccuracy
Use it when
- You need post-quantum cryptography resistance (ML-KEM, ML-DSA, SLH-DSA) in Dart or Flutter
- You want application recipes like encrypted file vaults, signed media, and hybrid sessions
Skip it when
- You only need standard classical cryptography without post-quantum algorithms and prefer simpler native libraries
- You need a backend client or state management solution
Strengths
- Pure-Dart implementation making it web-safe and cross-platform without strict FFI dependencies
- Comprehensive suite of NIST post-quantum standards (FIPS 203, 204, 205) and RFC 9180 HPKE
Weaknesses
- Niche domain-specific cryptographic library requiring specialized security knowledge
- Post-quantum cryptographic keys and ciphertexts are significantly larger than classical ones
Setup
- Kind
- Pure Dart
- Effort
- Low
- Code generation
- No
- Direct dependencies
- 5
import 'package:pqforge/pqforge.dart';
final forge = PqForge(profile: PqForgeProfile.maximum);
final keys = forge.generateKeys(keyId: 'archive-key');
final envelope = forge.sealMedia(
keys.kemKeyPair.publicKey,
mediaBytes,
mediaId: 'cover-2026-001',
mimeType: 'image/png',
);Alternatives
Packages that do the same job and could replace pqforge.
- webcrypto
Cross-platform implementation of Web Cryptography APIs for Dart.
89Compare - crypto
Provides SHA, MD5, and HMAC hashing functions for Dart.
96Compare - libsignal_protocol_dart
Pure Dart implementation of the Signal Protocol for end‑to‑end encrypted messaging.
72Compare - aes256
AES‑256‑GCM encryption/decryption with PBKDF2‑SHA256 key derivation.
62Compare
Works with
Packages commonly used together with pqforge: ones it builds on, ones built on it, and its own family.
- argspqforge depends on itLibrary for parsing raw command-line arguments into options and values using GNU and POSIX styles.
- pointycastlepqforge depends on itA Dart library providing a wide range of cryptographic algorithms and primitives.
- cryptographypqforge depends on itCross‑platform cryptographic algorithms for Dart and Flutter.
- pqcryptopqforge depends on itPure Dart post-quantum cryptography package implementing ML-KEM, ML-DSA, and SLH-DSA.