Skip to content
pubscout

xxtea

2.1.0, released 6 years ago by an unverified publisher

Fast and secure XXTEA encryption algorithm for Dart.

WASM-ready
$ flutter pub add xxtea
Source repository

What it does

Provides encryption and decryption functions for strings and Uint8List data using the XXTEA algorithm. It allows encrypting and decrypting data easily with a provided key.

AI-written summary of version 2.1.0, based on the package's README and metadata. Report an inaccuracy

Use it when

  • You need to encrypt and decrypt strings or Uint8List data in Dart using the XXTEA algorithm.
  • You want a fast, lightweight encryption method without complex setup.

Skip it when

  • You require industry-standard cryptographic algorithms like AES or RSA for high-security applications.
  • You are managing sensitive authentication tokens that require robust cipher suites.

Strengths

  • Supports both String and Uint8List for data and keys.
  • Simple and straightforward API for quick integration.

Weaknesses

  • XXTEA may not meet modern security standards for highly sensitive data compared to AES.
  • Not documented with extensive cryptographic configuration options.

Setup

Kind
Pure Dart
Effort
Low
Code generation
No
Direct dependencies
0

Not documented

import 'package:xxtea/xxtea.dart';

String str = "Hello World!";
String key = "1234567890";
String encrypt_data = xxtea.encryptToString(str, key);
String decrypt_data = xxtea.decryptToString(encrypt_data, key);

Alternatives

Packages that do the same job and could replace xxtea.

  • crypto

    Provides standard cryptographic and hashing functions like SHA and MD5 if you need general crypto support from the official Dart team.

Works with

Packages commonly used together with xxtea: ones it builds on, ones built on it, and its own family.