Skip to content

XXTEA encryption algorithm library for Dart.

License

Notifications You must be signed in to change notification settings

HudsonAfonso/xxtea-dart

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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 == encrypt_data)

About

XXTEA encryption algorithm library for Dart.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Dart 100.0%