Repository: xxtea/xxtea-java
Branch: master
Commit: 2c332d1f03eb
Files: 9
Total size: 21.5 KB
Directory structure:
gitextract_o7qhb6nd/
├── .gitignore
├── LICENSE.md
├── README.md
├── README_zh_CN.md
├── example/
│ ├── pom.xml
│ └── src/
│ └── main/
│ └── java/
│ └── org/
│ └── xxtea/
│ └── example/
│ └── Main.java
├── pom.xml
└── src/
└── main/
└── java/
└── org/
└── xxtea/
├── Base64.java
└── XXTEA.java
================================================
FILE CONTENTS
================================================
================================================
FILE: .gitignore
================================================
/target/
/example/target/
================================================
FILE: LICENSE.md
================================================
The MIT License (MIT)
Copyright (c) 2008-2016 Ma Bingyao <mabingyao@gmail.com>
Permission is hereby granted, free of charge, to any person obtaining a copy of
this software and associated documentation files (the "Software"), to deal in
the Software without restriction, including without limitation the rights to
use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of
the Software, and to permit persons to whom the Software is furnished to do so,
subject to the following conditions:
The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS
FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR
COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER
IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
================================================
FILE: README.md
================================================
# XXTEA for Java
<a href="https://github.com/xxtea/">
<img src="https://avatars1.githubusercontent.com/u/6683159?v=3&s=86" alt="XXTEA logo" title="XXTEA" align="right" />
</a>
[](https://gitter.im/xxtea/xxtea-java?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge&utm_content=badge)
[](https://maven-badges.herokuapp.com/maven-central/org.xxtea/xxtea-java/)
[](https://github.com/xxtea/xxtea-java/releases)
[](http://opensource.org/licenses/MIT)
## Introduction
XXTEA is a fast and secure encryption algorithm. This is a XXTEA library for Java.
It is different from the original XXTEA encryption algorithm. It encrypts and decrypts byte[] instead of 32bit integer array, and the key is also the byte[].
In addition to providing the API of byte[] encryption and decryption, it also provides some methods to handle string and Base64 encode.
## Usage
```java
package org.xxtea.test;
import org.xxtea.XXTEA;
public class Main {
public static void main(String[] args) {
String str = "Hello World! 你好,中国!";
String key = "1234567890";
byte[] encrypt_data = XXTEA.encrypt(str, key);
String decrypt_data = XXTEA.decryptToString(encrypt_data, key);
assert(str.equals(decrypt_data));
}
}
```
================================================
FILE: README_zh_CN.md
================================================
# XXTEA 加密算法的 Java 实现
<a href="https://github.com/xxtea/">
<img src="https://avatars1.githubusercontent.com/u/6683159?v=3&s=86" alt="XXTEA logo" title="XXTEA" align="right" />
</a>
[](https://gitter.im/xxtea/xxtea-java?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge&utm_content=badge)
[](https://maven-badges.herokuapp.com/maven-central/org.xxtea/xxtea-java/)
[](https://github.com/xxtea/xxtea-java/releases)
[](http://opensource.org/licenses/MIT)
## 简介
XXTEA 是一个快速安全的加密算法。本项目是 XXTEA 加密算法的 Java 实现。
它不同于原始的 XXTEA 加密算法。它是针对 byte[] 类型数据进行加密的,而不是针对 32 位整型数组。同样,密钥也是 byte[]。
为了用户使用方便,除了提供对 byte[] 进行加解密的 API 之外,还提供了一些辅助方法来处理字符串和 Base64 编码。
## 使用
```java
package org.xxtea.test;
import org.xxtea.XXTEA;
public class Main {
public static void main(String[] args) {
String str = "Hello World! 你好,中国!";
String key = "1234567890";
byte[] encrypt_data = XXTEA.encrypt(str, key);
String decrypt_data = XXTEA.decryptToString(encrypt_data, key);
assert(str.equals(decrypt_data));
}
}
```
================================================
FILE: example/pom.xml
================================================
<?xml version="1.0" encoding="UTF-8"?>
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>
<groupId>org.xxtea</groupId>
<artifactId>example</artifactId>
<version>1.0-SNAPSHOT</version>
<packaging>jar</packaging>
<dependencies>
<dependency>
<groupId>${project.groupId}</groupId>
<artifactId>xxtea-java</artifactId>
<version>1.0.5</version>
</dependency>
</dependencies>
<properties>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<maven.compiler.source>1.7</maven.compiler.source>
<maven.compiler.target>1.7</maven.compiler.target>
</properties>
</project>
================================================
FILE: example/src/main/java/org/xxtea/example/Main.java
================================================
package org.xxtea.example;
import org.xxtea.XXTEA;
public class Main {
public static void main(String[] args) {
String str = "Hello World! 你好,中国!";
String key = "1234567890";
String encrypt_data = XXTEA.encryptToBase64String(str, key);
System.out.println(encrypt_data);
assert("QncB1C0rHQoZ1eRiPM4dsZtRi9pNrp7sqvX76cFXvrrIHXL6".equals(encrypt_data));
String decrypt_data = XXTEA.decryptBase64StringToString(encrypt_data, key);
assert(str.equals(decrypt_data));
}
}
================================================
FILE: pom.xml
================================================
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>
<groupId>org.xxtea</groupId>
<artifactId>xxtea-java</artifactId>
<version>1.0.5</version>
<name>XXTEA for Java</name>
<description>XXTEA is a fast and secure encryption algorithm. This is a XXTEA library for Java.
It is different from the original XXTEA encryption algorithm. It encrypts and decrypts byte[] instead of 32bit integer array, and the key is also the byte[].</description>
<parent>
<groupId>org.sonatype.oss</groupId>
<artifactId>oss-parent</artifactId>
<version>9</version>
</parent>
<licenses>
<license>
<name>MIT License</name>
<url>https://raw.github.com/xxtea/xxtea-java/master/LICENSE.md</url>
</license>
</licenses>
<scm>
<connection>scm:git:https://github.com/xxtea/xxtea-java.git</connection>
<developerConnection>scm:git:https://github.com/xxtea/xxtea-java.git</developerConnection>
<url>https://github.com/xxtea/xxtea-java</url>
<tag>v1.0.5</tag>
</scm>
<developers>
<developer>
<id>andot</id>
<name>Ma Bingyao</name>
<email>mabingyao@gmail.com</email>
</developer>
</developers>
<issueManagement>
<system>GitHub Issues</system>
<url>https://github.com/xxtea/xxtea-java/issues</url>
</issueManagement>
<properties>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>
</properties>
<dependencies>
</dependencies>
<build>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin</artifactId>
<version>3.0</version>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-release-plugin</artifactId>
<version>2.4</version>
<configuration>
<tagNameFormat>v@{project.version}</tagNameFormat>
</configuration>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-source-plugin</artifactId>
<version>2.2.1</version>
<executions>
<execution>
<id>attach-sources</id>
<goals>
<goal>jar</goal>
</goals>
</execution>
</executions>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-gpg-plugin</artifactId>
<version>1.5</version>
<executions>
<execution>
<id>sign-artifacts</id>
<phase>verify</phase>
<goals>
<goal>sign</goal>
</goals>
</execution>
</executions>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-javadoc-plugin</artifactId>
<version>2.9</version>
<executions>
<execution>
<id>attach-javadocs</id>
<goals>
<goal>jar</goal>
</goals>
</execution>
</executions>
</plugin>
</plugins>
</build>
</project>
================================================
FILE: src/main/java/org/xxtea/Base64.java
================================================
/**********************************************************\
| |
| Base64.java |
| |
| Base64 library for Java. |
| |
| Code Authors: Ma Bingyao <mabingyao@gmail.com> |
| LastModified: Mar 10, 2015 |
| |
\**********************************************************/
package org.xxtea;
import java.io.ByteArrayOutputStream;
final class Base64 {
private static final char[] base64EncodeChars = new char[] {
'A', 'B', 'C', 'D', 'E', 'F', 'G', 'H',
'I', 'J', 'K', 'L', 'M', 'N', 'O', 'P',
'Q', 'R', 'S', 'T', 'U', 'V', 'W', 'X',
'Y', 'Z', 'a', 'b', 'c', 'd', 'e', 'f',
'g', 'h', 'i', 'j', 'k', 'l', 'm', 'n',
'o', 'p', 'q', 'r', 's', 't', 'u', 'v',
'w', 'x', 'y', 'z', '0', '1', '2', '3',
'4', '5', '6', '7', '8', '9', '+', '/' };
private static final byte[] base64DecodeChars = new byte[] {
-1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
-1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
-1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 62, -1, -1, -1, 63,
52, 53, 54, 55, 56, 57, 58, 59, 60, 61, -1, -1, -1, -1, -1, -1,
-1, 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14,
15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, -1, -1, -1, -1, -1,
-1, 26, 27, 28, 29, 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40,
41, 42, 43, 44, 45, 46, 47, 48, 49, 50, 51, -1, -1, -1, -1, -1 };
private Base64() {}
public static final String encode(byte[] data) {
StringBuilder sb = new StringBuilder();
int r = data.length % 3;
int len = data.length - r;
int i = 0;
int c;
while (i < len) {
c = (0x000000ff & data[i++]) << 16 |
(0x000000ff & data[i++]) << 8 |
(0x000000ff & data[i++]);
sb.append(base64EncodeChars[c >> 18]);
sb.append(base64EncodeChars[c >> 12 & 0x3f]);
sb.append(base64EncodeChars[c >> 6 & 0x3f]);
sb.append(base64EncodeChars[c & 0x3f]);
}
if (r == 1) {
c = 0x000000ff & data[i++];
sb.append(base64EncodeChars[c >> 2]);
sb.append(base64EncodeChars[(c & 0x03) << 4]);
sb.append("==");
}
else if (r == 2) {
c = (0x000000ff & data[i++]) << 8 |
(0x000000ff & data[i++]);
sb.append(base64EncodeChars[c >> 10]);
sb.append(base64EncodeChars[c >> 4 & 0x3f]);
sb.append(base64EncodeChars[(c & 0x0f) << 2]);
sb.append("=");
}
return sb.toString();
}
public static final byte[] decode(String str) {
byte[] data = str.getBytes();
int len = data.length;
ByteArrayOutputStream buf = new ByteArrayOutputStream(len);
int i = 0;
int b1, b2, b3, b4;
while (i < len) {
/* b1 */
do {
b1 = base64DecodeChars[data[i++]];
} while (i < len && b1 == -1);
if (b1 == -1) {
break;
}
/* b2 */
do {
b2 = base64DecodeChars[data[i++]];
} while (i < len && b2 == -1);
if (b2 == -1) {
break;
}
buf.write((int) ((b1 << 2) | ((b2 & 0x30) >>> 4)));
/* b3 */
do {
b3 = data[i++];
if (b3 == 61) {
return buf.toByteArray();
}
b3 = base64DecodeChars[b3];
} while (i < len && b3 == -1);
if (b3 == -1) {
break;
}
buf.write((int) (((b2 & 0x0f) << 4) | ((b3 & 0x3c) >>> 2)));
/* b4 */
do {
b4 = data[i++];
if (b4 == 61) {
return buf.toByteArray();
}
b4 = base64DecodeChars[b4];
} while (i < len && b4 == -1);
if (b4 == -1) {
break;
}
buf.write((int) (((b3 & 0x03) << 6) | b4));
}
return buf.toByteArray();
}
}
================================================
FILE: src/main/java/org/xxtea/XXTEA.java
================================================
/**********************************************************\
| |
| XXTEA.java |
| |
| XXTEA encryption algorithm library for Java. |
| |
| Encryption Algorithm Authors: |
| David J. Wheeler |
| Roger M. Needham |
| |
| Code Authors: Ma Bingyao <mabingyao@gmail.com> |
| LastModified: Mar 10, 2015 |
| |
\**********************************************************/
package org.xxtea;
import java.io.UnsupportedEncodingException;
public final class XXTEA {
private static final int DELTA = 0x9E3779B9;
private static int MX(int sum, int y, int z, int p, int e, int[] k) {
return (z >>> 5 ^ y << 2) + (y >>> 3 ^ z << 4) ^ (sum ^ y) + (k[p & 3 ^ e] ^ z);
}
private XXTEA() {}
public static final byte[] encrypt(byte[] data, byte[] key) {
if (data.length == 0) {
return data;
}
return toByteArray(
encrypt(toIntArray(data, true), toIntArray(fixKey(key), false)), false);
}
public static final byte[] encrypt(String data, byte[] key) {
try {
return encrypt(data.getBytes("UTF-8"), key);
}
catch (UnsupportedEncodingException e) {
return null;
}
}
public static final byte[] encrypt(byte[] data, String key) {
try {
return encrypt(data, key.getBytes("UTF-8"));
}
catch (UnsupportedEncodingException e) {
return null;
}
}
public static final byte[] encrypt(String data, String key) {
try {
return encrypt(data.getBytes("UTF-8"), key.getBytes("UTF-8"));
}
catch (UnsupportedEncodingException e) {
return null;
}
}
public static final String encryptToBase64String(byte[] data, byte[] key) {
byte[] bytes = encrypt(data, key);
if (bytes == null) return null;
return Base64.encode(bytes);
}
public static final String encryptToBase64String(String data, byte[] key) {
byte[] bytes = encrypt(data, key);
if (bytes == null) return null;
return Base64.encode(bytes);
}
public static final String encryptToBase64String(byte[] data, String key) {
byte[] bytes = encrypt(data, key);
if (bytes == null) return null;
return Base64.encode(bytes);
}
public static final String encryptToBase64String(String data, String key) {
byte[] bytes = encrypt(data, key);
if (bytes == null) return null;
return Base64.encode(bytes);
}
public static final byte[] decrypt(byte[] data, byte[] key) {
if (data.length == 0) {
return data;
}
return toByteArray(
decrypt(toIntArray(data, false), toIntArray(fixKey(key), false)), true);
}
public static final byte[] decrypt(byte[] data, String key) {
try {
return decrypt(data, key.getBytes("UTF-8"));
}
catch (UnsupportedEncodingException e) {
return null;
}
}
public static final byte[] decryptBase64String(String data, byte[] key) {
return decrypt(Base64.decode(data), key);
}
public static final byte[] decryptBase64String(String data, String key) {
return decrypt(Base64.decode(data), key);
}
public static final String decryptToString(byte[] data, byte[] key) {
try {
byte[] bytes = decrypt(data, key);
if (bytes == null) return null;
return new String(bytes, "UTF-8");
}
catch (UnsupportedEncodingException ex) {
return null;
}
}
public static final String decryptToString(byte[] data, String key) {
try {
byte[] bytes = decrypt(data, key);
if (bytes == null) return null;
return new String(bytes, "UTF-8");
}
catch (UnsupportedEncodingException ex) {
return null;
}
}
public static final String decryptBase64StringToString(String data, byte[] key) {
try {
byte[] bytes = decrypt(Base64.decode(data), key);
if (bytes == null) return null;
return new String(bytes, "UTF-8");
}
catch (UnsupportedEncodingException ex) {
return null;
}
}
public static final String decryptBase64StringToString(String data, String key) {
try {
byte[] bytes = decrypt(Base64.decode(data), key);
if (bytes == null) return null;
return new String(bytes, "UTF-8");
}
catch (UnsupportedEncodingException ex) {
return null;
}
}
private static int[] encrypt(int[] v, int[] k) {
int n = v.length - 1;
if (n < 1) {
return v;
}
int p, q = 6 + 52 / (n + 1);
int z = v[n], y, sum = 0, e;
while (q-- > 0) {
sum = sum + DELTA;
e = sum >>> 2 & 3;
for (p = 0; p < n; p++) {
y = v[p + 1];
z = v[p] += MX(sum, y, z, p, e, k);
}
y = v[0];
z = v[n] += MX(sum, y, z, p, e, k);
}
return v;
}
private static int[] decrypt(int[] v, int[] k) {
int n = v.length - 1;
if (n < 1) {
return v;
}
int p, q = 6 + 52 / (n + 1);
int z, y = v[0], sum = q * DELTA, e;
while (sum != 0) {
e = sum >>> 2 & 3;
for (p = n; p > 0; p--) {
z = v[p - 1];
y = v[p] -= MX(sum, y, z, p, e, k);
}
z = v[n];
y = v[0] -= MX(sum, y, z, p, e, k);
sum = sum - DELTA;
}
return v;
}
private static byte[] fixKey(byte[] key) {
if (key.length == 16) return key;
byte[] fixedkey = new byte[16];
if (key.length < 16) {
System.arraycopy(key, 0, fixedkey, 0, key.length);
}
else {
System.arraycopy(key, 0, fixedkey, 0, 16);
}
return fixedkey;
}
private static int[] toIntArray(byte[] data, boolean includeLength) {
int n = (((data.length & 3) == 0)
? (data.length >>> 2)
: ((data.length >>> 2) + 1));
int[] result;
if (includeLength) {
result = new int[n + 1];
result[n] = data.length;
}
else {
result = new int[n];
}
n = data.length;
for (int i = 0; i < n; ++i) {
result[i >>> 2] |= (0x000000ff & data[i]) << ((i & 3) << 3);
}
return result;
}
private static byte[] toByteArray(int[] data, boolean includeLength) {
int n = data.length << 2;
if (includeLength) {
int m = data[data.length - 1];
n -= 4;
if ((m < n - 3) || (m > n)) {
return null;
}
n = m;
}
byte[] result = new byte[n];
for (int i = 0; i < n; ++i) {
result[i] = (byte) (data[i >>> 2] >>> ((i & 3) << 3));
}
return result;
}
}
gitextract_o7qhb6nd/
├── .gitignore
├── LICENSE.md
├── README.md
├── README_zh_CN.md
├── example/
│ ├── pom.xml
│ └── src/
│ └── main/
│ └── java/
│ └── org/
│ └── xxtea/
│ └── example/
│ └── Main.java
├── pom.xml
└── src/
└── main/
└── java/
└── org/
└── xxtea/
├── Base64.java
└── XXTEA.java
SYMBOL INDEX (30 symbols across 3 files)
FILE: example/src/main/java/org/xxtea/example/Main.java
class Main (line 5) | public class Main {
method main (line 6) | public static void main(String[] args) {
FILE: src/main/java/org/xxtea/Base64.java
class Base64 (line 16) | final class Base64 {
method Base64 (line 37) | private Base64() {}
method encode (line 39) | public static final String encode(byte[] data) {
method decode (line 71) | public static final byte[] decode(String str) {
FILE: src/main/java/org/xxtea/XXTEA.java
class XXTEA (line 20) | public final class XXTEA {
method MX (line 24) | private static int MX(int sum, int y, int z, int p, int e, int[] k) {
method XXTEA (line 28) | private XXTEA() {}
method encrypt (line 30) | public static final byte[] encrypt(byte[] data, byte[] key) {
method encrypt (line 37) | public static final byte[] encrypt(String data, byte[] key) {
method encrypt (line 45) | public static final byte[] encrypt(byte[] data, String key) {
method encrypt (line 53) | public static final byte[] encrypt(String data, String key) {
method encryptToBase64String (line 61) | public static final String encryptToBase64String(byte[] data, byte[] k...
method encryptToBase64String (line 66) | public static final String encryptToBase64String(String data, byte[] k...
method encryptToBase64String (line 71) | public static final String encryptToBase64String(byte[] data, String k...
method encryptToBase64String (line 76) | public static final String encryptToBase64String(String data, String k...
method decrypt (line 81) | public static final byte[] decrypt(byte[] data, byte[] key) {
method decrypt (line 88) | public static final byte[] decrypt(byte[] data, String key) {
method decryptBase64String (line 96) | public static final byte[] decryptBase64String(String data, byte[] key) {
method decryptBase64String (line 99) | public static final byte[] decryptBase64String(String data, String key) {
method decryptToString (line 102) | public static final String decryptToString(byte[] data, byte[] key) {
method decryptToString (line 112) | public static final String decryptToString(byte[] data, String key) {
method decryptBase64StringToString (line 122) | public static final String decryptBase64StringToString(String data, by...
method decryptBase64StringToString (line 132) | public static final String decryptBase64StringToString(String data, St...
method encrypt (line 143) | private static int[] encrypt(int[] v, int[] k) {
method decrypt (line 165) | private static int[] decrypt(int[] v, int[] k) {
method fixKey (line 187) | private static byte[] fixKey(byte[] key) {
method toIntArray (line 199) | private static int[] toIntArray(byte[] data, boolean includeLength) {
method toByteArray (line 219) | private static byte[] toByteArray(int[] data, boolean includeLength) {
Condensed preview — 9 files, each showing path, character count, and a content snippet. Download the .json file or copy for the full structured content (24K chars).
[
{
"path": ".gitignore",
"chars": 25,
"preview": "/target/\n/example/target/"
},
{
"path": "LICENSE.md",
"chars": 1104,
"preview": "The MIT License (MIT)\n\nCopyright (c) 2008-2016 Ma Bingyao <mabingyao@gmail.com>\n\nPermission is hereby granted, free of c"
},
{
"path": "README.md",
"chars": 1606,
"preview": "# XXTEA for Java\n\n<a href=\"https://github.com/xxtea/\">\n <img src=\"https://avatars1.githubusercontent.com/u/6683159?v="
},
{
"path": "README_zh_CN.md",
"chars": 1403,
"preview": "# XXTEA 加密算法的 Java 实现\n\n<a href=\"https://github.com/xxtea/\">\n <img src=\"https://avatars1.githubusercontent.com/u/66831"
},
{
"path": "example/pom.xml",
"chars": 875,
"preview": "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<project xmlns=\"http://maven.apache.org/POM/4.0.0\" xmlns:xsi=\"http://www.w3.org/2"
},
{
"path": "example/src/main/java/org/xxtea/example/Main.java",
"chars": 531,
"preview": "package org.xxtea.example;\n\nimport org.xxtea.XXTEA;\n\npublic class Main {\n public static void main(String[] args) {\n "
},
{
"path": "pom.xml",
"chars": 3962,
"preview": "<project xmlns=\"http://maven.apache.org/POM/4.0.0\" xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\"\n xsi:sc"
},
{
"path": "src/main/java/org/xxtea/Base64.java",
"chars": 4612,
"preview": "/**********************************************************\\\r\n| "
},
{
"path": "src/main/java/org/xxtea/XXTEA.java",
"chars": 7865,
"preview": "/**********************************************************\\\r\n| "
}
]
About this extraction
This page contains the full source code of the xxtea/xxtea-java GitHub repository, extracted and formatted as plain text for AI agents and large language models (LLMs). The extraction includes 9 files (21.5 KB), approximately 6.1k tokens, and a symbol index with 30 extracted functions, classes, methods, constants, and types. Use this with OpenClaw, Claude, ChatGPT, Cursor, Windsurf, or any other AI tool that accepts text input. You can copy the full output to your clipboard or download it as a .txt file.
Extracted by GitExtract — free GitHub repo to text converter for AI. Built by Nikandr Surkov.