FLUTTER ECOSYSTEM

xxtea/xxtea-dart

Biblioteca de algoritmo de criptografia XXTEA para Dart.

Capa do projeto xxtea-dart
Stars
42
Forks
15
Último push (UTC)
11 de mar. de 2021
Status do projeto
Ativo
xxtea GitHub avatar
GITHUB Organization

xxtea ↗

XXTEA encryption arithmetic library

LinguagensDart

Pacotes publicados por este repositório

Dependências usadas

Lista de dependências 1 itens
  • testDesenvolvimentoany

README original

Texto original em inglês. Visite o GitHub para a versão atual.

Expandir / recolher README

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)