OpenPGP workspace for Dart backed by sequoia-openpgp over dart:ffi.
packages/pgp_dart: Pure-Dart OpenPGP value types, algorithm enums, andPgpExceptionwith no native or Flutter dependencies.packages/pgp: Pure-Dart FFI bindings re-exportingpgp_dart, plus the nativepgp-ffiRust crate underpackages/pgp/nativebundled throughhook/build.dart.
packages/pgp/hook/build.dart resolves libpgp_ffi in three tiers:
local_libuser-define override pointing to a local shared library.- Prebuilt
.tar.gzrelease archive verified by SHA-256 (configured via pinned checksums orprebuilt_base_url/prebuilt_sha256user defines). - Source build via
RustBuilder(native_toolchain_rust), usingcrypto-cngon Windows andcrypto-openssl-vendoredon Unix/Android/iOS/macOS, with--lockedbuilds, Android RELR opt-out and 16 KB ELF page alignment, and Apple deployment targets.
dart pub get
dart format --output none --set-exit-if-changed packages/pgp_dart packages/pgp
dart analyze packages/pgp_dart packages/pgp
(cd packages/pgp_dart && dart test)
(cd packages/pgp && dart test)
(cd packages/pgp/native && cargo test --locked --lib)
./tool/consumer_build.sh