Search packages, repositories and app categories

Package detailsv2.9.0

cryptography

Cryptographic algorithms for encryption, digital signatures, key agreement, authentication, and hashing. AES, Chacha20, ED25519, and more. Cross-platform (mobile, desktop, JS, WASM).

AndroidiOSWebmacOSWindowsLinux
30-day downloads
1.3M
Likes
315
Pub points
130

Install package

flutter pub add cryptography

Package Overview

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

The cryptography package provides a comprehensive set of cryptographic algorithms for encryption, digital signatures, key agreement, authentication, and hashing. It supports widely used standards such as AES, Chacha20, and ED25519, ensuring strong security across platforms. Designed for cross-platform use, it works seamlessly on Android, iOS, Web, macOS, Windows, and Linux. Built with Dart, it enables developers to implement secure data handling in applications requiring privacy, integrity, and authentication. The package is maintained by dint.dev and open-source on GitHub.

Use cases

  • Secure data storage
  • End-to-end encryption
  • Digital signature verification
  • Authentication token generation
  • Secure API communication
  • Key exchange protocols

Key features

  • Supports AES, Chacha20, ED25519
  • Cross-platform compatibility
  • High performance on all targets
  • Open-source and actively maintained
  • Simple Dart API
  • Cryptographic primitives for modern security

Suitable for

  • Mobile app developers
  • Web application security
  • Desktop applications requiring encryption
  • Blockchain or crypto-related apps
  • Applications needing secure key management

Considerations

  • Requires understanding of cryptographic best practices
  • Not suitable for raw crypto implementation without expertise
  • May increase app size slightly
  • Depends on platform-specific native code for some operations
  • Best used with proper security design patterns

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 5 items

Source repository

Projects using this package