cryptography_flutter_plus
3.2.0, released 2 months ago by emz-hanauer.com
Flutter plugin to use platform APIs for package:cryptography_plus
What it does
Enables package:cryptography_plus to use native platform APIs in Android, iOS, and Mac OS X for cryptographic operations. Falls back to pure Dart or background isolates when platform APIs are unavailable.
AI-written summary of version 3.2.0, based on the package's README and metadata. Report an inaccuracy
Use it when
- You need better performance for cryptographic algorithms like AES-GCM or ChaCha20 in your Flutter app.
- You want to leverage secure operating system crypto APIs on Android, iOS, and macOS.
Skip it when
- You do not use package:cryptography_plus in your project.
- Your target platforms are exclusively ones without native platform crypto adapters provided by this package.
Strengths
- Up to 100 times better performance compared to pure Dart implementations.
- Automatic fallback to Dart implementations when operating system APIs cannot be used.
- Uses background isolates for lengthy computations to keep the UI smooth.
Weaknesses
- Platform API availability varies by algorithm and operating system (e.g., some algorithms are only supported on Apple operating systems or Android).
- Requires managing specific package dependencies like cryptography_plus.
Setup
- Kind
- Plugin (native code)
- Effort
- Low
- Code generation
- No
- Direct dependencies
- 1
Add cryptography_plus and cryptography_flutter to your pubspec.yaml dependencies.
dependencies:
cryptography_plus: ^2.7.0
cryptography_flutter: ^2.3.2Alternatives
Packages that do the same job and could replace cryptography_flutter_plus.
- cryptography_flutter
Flutter plugin that lets the cryptography package use native OS crypto APIs for faster, compliant operations.
62Compare - webcrypto
Cross-platform implementation of Web Cryptography APIs for Dart.
89Compare - crypto
Provides SHA, MD5, and HMAC hashing functions for Dart.
96Compare - system_clock
Dart timekeeping facilities to get system uptime and elapsed time.
55Compare
Works with
Packages commonly used together with cryptography_flutter_plus: ones it builds on, ones built on it, and its own family.