搜索插件、代码仓与 APP 分类

插件详情v2.9.0

cryptography

用于加密、数字签名、密钥协商、身份验证和哈希的加密算法。包括 AES、Chacha20、ED25519 等。跨平台(移动、桌面、JS、WASM)。

AndroidiOSWebmacOSWindowsLinux
近 30 天下载
133万
喜欢数
315
Pub 分数
130

安装插件

flutter pub add cryptography

插件介绍

基于插件公开信息、社区数据与项目使用情况整理的选型参考。

加密包提供了一套全面的加密算法,用于加密、数字签名、密钥协商、身份验证和哈希。它支持 AES、Chacha20 和 ED25519 等广泛使用的标准,确保跨平台的强大安全性。专为跨平台使用而设计,可在 Android、iOS、Web、macOS、Windows 和 Linux 上无缝运行。基于 Dart 构建,使开发者能够实现需要隐私性、完整性和认证的应用程序中的安全数据处理。该包由 dint.dev 维护,并在 GitHub 上开源。

适合场景

  • 安全数据存储
  • 端到端加密
  • 数字签名验证
  • 身份验证令牌生成
  • 安全的API通信
  • 密钥交换协议

主要特点

  • 支持 AES、Chacha20、ED25519
  • 跨平台兼容性
  • 在所有目标上均表现出高性能
  • 开源且持续维护
  • 简单的 Dart API
  • 现代安全的加密原语

适合对象

  • 移动应用开发者
  • Web应用程序安全
  • 需要加密的桌面应用程序
  • 区块链或加密货币相关应用
  • 需要安全密钥管理的应用程序

使用建议

  • 需要了解密码学最佳实践
  • 未经专业经验,不适合用于原始加密实现
  • 可能会略微增加应用大小
  • 依赖于某些操作的平台特定原生代码
  • 最好与适当的安全设计模式一起使用

原始 README

以下为关联源码仓库的 README 原文快照,最新内容请访问源码仓库。

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

所属分类

依赖

依赖清单 5 项

源码仓库

使用此插件的项目