v2.1.0
xxtea
XXTEA for Dart XXTEA 是一種快速且安全的加密演算法。這是 Dart 的 XXTEA 庫。
14喜歡 1.3萬近 30 天下載130Pub 分數
AndroidiOSWebmacOSWindowsLinux
Dart 的 XXTEA 加密演算法程式庫。
any以下為英文專案原文快照,最新內容請造訪 GitHub。
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.
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)