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

套件詳情v2.1.0

xxtea

XXTEA for Dart XXTEA 是一種快速且安全的加密演算法。這是 Dart 的 XXTEA 庫。

AndroidiOSWebmacOSWindowsLinux
近 30 天下載
1.5萬
喜歡數
14
Pub 分數
130

安裝套件

flutter pub add xxtea

套件介紹

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

XXTEA 是一種輕量級、快速且安全的加密演算法,專為 Dart 實作。它提供了一個簡單的介面,用於使用 XXTEA 加密演算法對資料進行加密和解密,適用於需要高效對稱加密的應用程式。該函式庫支援多種平台,包括 Android、iOS、Web、macOS、Windows 和 Linux,確保跨平台相容性。設計簡潔且效能優異,非常適合在基於 Dart 的應用程式中保護中小型資料負載。

適用情境

  • 安全數據存儲
  • 加密設定檔
  • 保護敏感用戶數據
  • 跨平台加密
  • 簡單的對稱加密需要

主要特色

  • 快速加密和解密
  • 跨平台支援
  • 簡單 API
  • 安全演算法
  • 輕量級實現

適合對象

  • 行動應用開發者
  • Web應用程式安全
  • 桌面應用程式加密
  • Flutter 應用中的資料保護
  • 需要輕量級加密的應用程式

使用建議

  • 不適用於大資料流
  • 需要謹慎管理金鑰
  • 最適合中小型資料大小
  • 不提供驗證
  • 限制為對稱加密

原始 README

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

XXTEA for Dart

XXTEA logo

Build Status Pub

Introduction

XXTEA is a fast and secure encryption algorithm. This is a XXTEA library for Dart.

It is different from the original XXTEA encryption algorithm. It encrypts and decrypts String/Uint8List instead of uint32 array, and the key is also String/Uint8List.

Usage

import 'package:xxtea/xxtea.dart';

String str = "Hello World! 你好,中国🇨🇳!";
String key = "1234567890";
String encrypt_data = xxtea.encryptToString(str, key);
print(encrypt_data)
String decrypt_data = xxtea.decryptToString(encrypt_data, key);
print(str == decrypt_data)

所屬分類

原始碼儲存庫

使用此套件的專案