Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/xxtea/xxtea-as3
XXTEA encryption algorithm library for ActionScript 3.
https://github.com/xxtea/xxtea-as3
Last synced: 3 months ago
JSON representation
XXTEA encryption algorithm library for ActionScript 3.
- Host: GitHub
- URL: https://github.com/xxtea/xxtea-as3
- Owner: xxtea
- License: mit
- Created: 2016-02-08T04:53:39.000Z (about 9 years ago)
- Default Branch: master
- Last Pushed: 2016-02-08T12:45:24.000Z (about 9 years ago)
- Last Synced: 2024-08-04T05:04:32.529Z (6 months ago)
- Language: ActionScript
- Size: 6.84 KB
- Stars: 5
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE.md
Awesome Lists containing this project
- awesome-actionscript-sorted - xxtea-as3 - XXTEA encryption algorithm library for ActionScript 3. (Utilities / Crypto)
README
# XXTEA for ActionScript 3
## 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
```actionscript
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);
```