Skip to content

XXTEA encryption algorithm library for ActionScript 3.

License

Notifications You must be signed in to change notification settings

xxtea/xxtea-as3

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 

Repository files navigation

XXTEA for ActionScript 3

XXTEA logo

Introduction

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

It is different from the original XXTEA encryption algorithm. It encrypts and decrypts ByteArray(String) instead of int or uint Array, and the key is also ByteArray(String).

Usage

import org.xxtea.XXTEA;

var str:String = "Hello World! 你好,中国🇨🇳!";
var key:String = "1234567890";
var encrypt_data:String = XXTEA.encryptToString(str, key);
trace(encrypt_data);
var decrypt_data:String = XXTEA.decryptToString(encrypt_data, key);
trace(str == decrypt_data);

About

XXTEA encryption algorithm library for ActionScript 3.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published