Search packages, repositories and app categories

Package detailsv2.3.4

cryptography_flutter

Makes 'package:cryptography' use platform APIs in Android, iOS, and Mac OS X. The package can make performance up to 100 times better.

AndroidiOSmacOS
30-day downloads
90.5K
Likes
37
Pub points
160

Install package

flutter pub add cryptography_flutter

Package Overview

Package selection guidance compiled from public package information, community data, and project usage.

cryptography_flutter enables the use of native platform cryptographic APIs on Android, iOS, and macOS, significantly improving performance—up to 100 times faster than pure Dart implementations. It integrates seamlessly with the 'package:cryptography' library, leveraging system-level cryptography for enhanced speed and security. This package is ideal for applications requiring high-performance encryption, decryption, hashing, and key management. By offloading operations to native code, it reduces CPU usage and memory overhead, making it suitable for sensitive data processing in mobile and desktop environments.

Use cases

  • High-performance encryption in mobile apps
  • Secure key storage using platform APIs
  • Fast hashing for large data sets
  • Secure authentication workflows
  • Cross-platform crypto operations

Key features

  • Up to 100x performance improvement
  • Uses native OS cryptographic APIs
  • Seamless integration with package:cryptography
  • Reduced CPU and memory usage
  • Supports Android, iOS, and macOS

Suitable for

  • Performance-critical security applications
  • Apps handling sensitive user data
  • Developers using package:cryptography
  • Mobile and desktop apps needing fast crypto
  • Projects prioritizing system-level security

Considerations

  • Requires native platform access
  • Limited to supported platforms
  • Depends on underlying OS crypto stability
  • May increase app size slightly
  • Not suitable for web platforms

Original README

Original README snapshot from the linked source repository. Visit the repository for the latest content.

Pub Package Github Actions CI

Overview

Cryptographic packages for Dart / Flutter developers. Open-sourced under the Apache License 2.0.

Maintained by terrier989. Licensed under the Apache License 2.0.

Packages

  • cryptography
    • Cryptography API for Dart / Flutter.
    • Contains cryptographic algorithm implementations written in pure Dart.
    • Contains cryptographic algorithm implementations that use Web Cryptography API in browsers.
  • cryptography_flutter
    • Contains cryptographic algorithm implementations that use operating system APIs in Android and Apple operating systems (iOS, Mac OS X, etc.).
  • cryptography_flutter_integration_test
    • Integration test project for "cryptography_flutter".
  • cryptography_test
    • Cross-platform tests. Note that "cryptography" and "cryptography_flutter_integration_test" contain more tests than just these.
  • jwk
    • JWK (JSON Web Key) encoding / decoding.

Contributing

Please share feedback / issue reports in the issue tracker.

Pull requests are welcome.

Testing

Categories

Dependencies

Dependency list 1 items

Source repository

Projects using this package