XXTEA for Java

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[].

License

License

Categories

Categories

Java Languages
GroupId

GroupId

org.xxtea
ArtifactId

ArtifactId

xxtea-java
Last Version

Last Version

1.0.5
Release Date

Release Date

Type

Type

jar
Description

Description

XXTEA for Java
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[].
Source Code Management

Source Code Management

https://github.com/xxtea/xxtea-java

Download xxtea-java

How to add to project

<!-- https://jarcasting.com/artifacts/org.xxtea/xxtea-java/ -->
<dependency>
    <groupId>org.xxtea</groupId>
    <artifactId>xxtea-java</artifactId>
    <version>1.0.5</version>
</dependency>
// https://jarcasting.com/artifacts/org.xxtea/xxtea-java/
implementation 'org.xxtea:xxtea-java:1.0.5'
// https://jarcasting.com/artifacts/org.xxtea/xxtea-java/
implementation ("org.xxtea:xxtea-java:1.0.5")
'org.xxtea:xxtea-java:jar:1.0.5'
<dependency org="org.xxtea" name="xxtea-java" rev="1.0.5">
  <artifact name="xxtea-java" type="jar" />
</dependency>
@Grapes(
@Grab(group='org.xxtea', module='xxtea-java', version='1.0.5')
)
libraryDependencies += "org.xxtea" % "xxtea-java" % "1.0.5"
[org.xxtea/xxtea-java "1.0.5"]

Dependencies

There are no dependencies for this project. It is a standalone project that does not depend on any other jars.

Project Modules

There are no modules declared in this project.

XXTEA for Java

XXTEA logo

Join the chat at https://gitter.im/xxtea/xxtea-java Maven Central GitHub release License

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

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));
    }
}
org.xxtea

xxtea

XXTEA encryption arithmetic library

Versions

Version
1.0.5