搜尋套件、儲存庫與 APP 分類

套件詳情v3.0.8

crypto

SHA、MD5 和 HMAC 加密函數的實作。

AndroidiOSWebmacOSWindowsLinux
近 30 天下載
1930萬
喜歡數
1900
Pub 分數
160

安裝套件

flutter pub add crypto

套件介紹

根據套件公開資料產生的選型評估,僅供參考。

crypto 套件提供 Dart 中廣泛使用的加密函數實作,包含 SHA、MD5 和 HMAC 算法。此套件專為安全資料處理設計,讓開發者能對資料進行雜湊運算、產生訊息驗證碼,並在多個平台確保資料完整性。該套件由 Dart 團隊維護,可無縫整合至 Flutter 應用程式中。支援所有主要平台:Android、iOS、Web、macOS、Windows 與 Linux,非常適合跨平台安全需求。

適用情境

  • 數據哈希用於完整性檢查
  • 使用加鹽雜湊的安全密碼儲存
  • 為API驗證生成HMAC簽名
  • 在儲存前對敏感資料進行加密
  • 驗證數位簽章
  • 實現安全會話令牌

主要特色

  • 支援 SHA-1、SHA-256、SHA-384、SHA-512
  • 提供 MD5 哈希(用於舊版相容性)
  • 使用任意雜湊函數的 HMAC 實作
  • 跨平台相容性
  • 輕便且維護良好
  • 簡單、一致的 API

適合對象

  • 需要資料完整性驗證的應用程式
  • 需要安全哈希的後端服務
  • 處理用戶憑證的移動應用
  • 強制執行安全通訊的Web應用程式
  • 開發驗證系統的開發者

使用建議

  • MD5 在密碼學上較弱;在安全關鍵用途中應避免使用
  • SHA-1 已棄用;建議使用 SHA-256 或更高版本
  • 不適用於完整加密——請使用專用加密程式庫
  • 需要仔細管理金鑰以使用HMAC
  • 僅限雜湊和MAC操作,不包含完整密碼套件

原始 README

以下為關聯原始碼儲存庫的 README 原文快照,最新內容請造訪原始碼儲存庫。

Overview

This repository is home to various Dart packages under the dart.dev publisher.

Packages

Package Description Issues Version
args Library for defining parsers for parsing raw command-line arguments into a set of options and values using GNU and POSIX style options. issues pub package
async Utility functions and classes related to the 'dart:async' library. issues pub package
characters String replacement with operations that are Unicode/grapheme cluster aware. issues pub package
collection Collections and utilities functions and classes related to collections. issues pub package
convert Utilities for converting between data representations. Provides a number of Sink, Codec, Decoder, and Encoder types. issues pub package
crypto Implementations of SHA, MD5, and HMAC cryptographic functions. issues pub package
fixnum Library for 32- and 64-bit signed fixed-width integers with consistent behavior between native and JS runtimes. issues pub package
lints Official Dart lint rules. Defines the 'core' and 'recommended' set of lints suggested by the Dart team. issues pub package
logging Provides APIs for debugging and error logging, similar to loggers in other languages, such as the Closure JS Logger and java.util.logging.Logger. issues pub package
os_detect Platform independent OS detection. issues pub package
path A string-based path manipulation library. issues pub package
platform A pluggable, mockable platform information abstraction for Dart. issues pub package
typed_data Utility functions and classes related to the dart:typed_data library. issues pub package

Publishing automation

For information about our publishing automation and release process, see https://github.com/dart-lang/ecosystem/wiki/Publishing-automation.

For additional information about contributing, see our contributing page.

所屬分類

原始碼儲存庫

使用此套件的專案

所在榜單