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

插件详情v2.3.4

cryptography_flutter

使 'package:cryptography' 在 Android、iOS 和 Mac OS X 上使用平台 API。该包可使性能提升高达 100 倍。

AndroidiOSmacOS
近 30 天下载
9.1万
喜欢数
37
Pub 分数
160

安装插件

flutter pub add cryptography_flutter

插件介绍

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

cryptography_flutter 允许在 Android、iOS 和 macOS 上使用原生平台加密 API,显著提升性能——比纯 Dart 实现快多达 100 倍。它与 'package:cryptography' 库无缝集成,利用系统级加密技术实现更高的速度和安全性。该包非常适合需要高性能加密、解密、哈希和密钥管理的应用程序。通过将操作卸载到原生代码,它可降低 CPU 使用率和内存开销,适用于移动和桌面环境中的敏感数据处理。

适合场景

  • 移动应用中的高性能加密
  • 使用平台 API 进行安全密钥存储
  • 大型数据集的快速哈希
  • 安全的身份验证工作流程
  • 跨平台加密操作

主要特点

  • 最高可达100倍性能提升
  • 使用原生操作系统加密API
  • 与包:cryptography 的无缝集成
  • 降低CPU和内存使用
  • 支持 Android、iOS 和 macOS

适合对象

  • 性能关键的安全应用
  • 处理敏感用户数据的应用程序
  • 使用包:cryptography 的开发者
  • 需要快速加密的移动和桌面应用程序
  • 优先考虑系统级安全的项目

使用建议

  • 需要原生平台访问权限
  • 仅限支持的平台
  • 取决于底层操作系统加密的稳定性
  • 可能会略微增加应用大小
  • 不适用于网络平台

原始 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

所属分类

依赖

依赖清单 1 项

源码仓库

使用此插件的项目