Overview of the Cryptography ecosystem
masterThe cryptography ecosystem provides cryptographic algorithm implementations for Dart and Flutter developers. It is split into several packages depending on the required implementation backend (pure Dart, Web Crypto, or Native OS APIs) and utility needs (like JWK handling).
To use cryptography in your project, you should choose the package that matches your target platform and performance requirements:
cryptography: The core API. Use this for pure Dart implementations or when targeting web browsers (via Web Cryptography API).cryptography_flutter: Use this for high-performance implementations that leverage native operating system APIs on Android and Apple platforms (iOS, macOS, etc.).jwk: A utility package for encoding and decoding JSON Web Keys (JWK).