Search packages, repositories and app categories

Package detailsv2.1.0

xxtea

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

AndroidiOSWebmacOSWindowsLinux
30-day downloads
14.6K
Likes
14
Pub points
130

Install package

flutter pub add xxtea

Package Overview

Package selection guidance compiled from public package information, community data, and project usage.

XXTEA is a lightweight, fast, and secure encryption algorithm implemented for Dart. It provides a simple interface for encrypting and decrypting data using the XXTEA cipher, making it suitable for applications requiring efficient symmetric encryption. The library supports multiple platforms including Android, iOS, Web, macOS, Windows, and Linux, ensuring cross-platform compatibility. Designed for simplicity and performance, it's ideal for securing small to medium-sized data payloads in Dart-based apps.

Use cases

  • Secure data storage
  • Encrypting configuration files
  • Protecting sensitive user data
  • Cross-platform encryption
  • Simple symmetric encryption needs

Key features

  • Fast encryption and decryption
  • Cross-platform support
  • Simple API
  • Secure algorithm
  • Lightweight implementation

Suitable for

  • Mobile app developers
  • Web application security
  • Desktop app encryption
  • Data protection in Flutter apps
  • Applications needing lightweight cryptography

Considerations

  • Not suitable for large data streams
  • Requires careful key management
  • Best for small to medium data sizes
  • Does not provide authentication
  • Limited to symmetric encryption

Original README

Original README snapshot from the linked source repository. Visit the repository for the latest content.

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)

Categories

Source repository

Projects using this package