FLUTTER ECOSYSTEM

xxtea/xxtea-dart

Dart 的 XXTEA 加密演算法程式庫。

xxtea-dart 專案封面
Stars
42
Forks
15
最近推送(UTC)
2021年3月11日
專案狀態
未封存
xxtea GitHub avatar
GITHUB Organization

xxtea ↗

XXTEA encryption arithmetic library

語言Dart

此儲存庫發佈的套件

使用的依賴

依賴清單 1 項

原始 README

以下為英文專案原文快照,最新內容請造訪 GitHub。

展開 / 收合專案 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)