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)