{"id":28113257,"url":"https://github.com/xxtea/xxtea-java","last_synced_at":"2026-02-12T14:54:14.700Z","repository":{"id":28390950,"uuid":"31905195","full_name":"xxtea/xxtea-java","owner":"xxtea","description":"XXTEA encryption algorithm library for Java.","archived":false,"fork":false,"pushed_at":"2016-02-12T19:33:55.000Z","size":11,"stargazers_count":124,"open_issues_count":1,"forks_count":63,"subscribers_count":12,"default_branch":"master","last_synced_at":"2023-11-13T09:42:12.638Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Java","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/xxtea.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.md","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2015-03-09T15:08:14.000Z","updated_at":"2023-10-30T15:34:08.000Z","dependencies_parsed_at":"2022-08-26T21:10:23.732Z","dependency_job_id":null,"html_url":"https://github.com/xxtea/xxtea-java","commit_stats":null,"previous_names":[],"tags_count":1,"template":null,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/xxtea%2Fxxtea-java","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/xxtea%2Fxxtea-java/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/xxtea%2Fxxtea-java/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/xxtea%2Fxxtea-java/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/xxtea","download_url":"https://codeload.github.com/xxtea/xxtea-java/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":254076849,"owners_count":22010611,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2025-05-14T05:01:35.202Z","updated_at":"2026-02-12T14:54:09.672Z","avatar_url":"https://github.com/xxtea.png","language":"Java","funding_links":[],"categories":["安全"],"sub_categories":[],"readme":"# XXTEA for Java\n\n\u003ca href=\"https://github.com/xxtea/\"\u003e\n    \u003cimg src=\"https://avatars1.githubusercontent.com/u/6683159?v=3\u0026s=86\" alt=\"XXTEA logo\" title=\"XXTEA\" align=\"right\" /\u003e\n\u003c/a\u003e\n\n[![Join the chat at https://gitter.im/xxtea/xxtea-java](https://img.shields.io/badge/GITTER-join%20chat-green.svg)](https://gitter.im/xxtea/xxtea-java?utm_source=badge\u0026utm_medium=badge\u0026utm_campaign=pr-badge\u0026utm_content=badge)\n[![Maven Central](https://maven-badges.herokuapp.com/maven-central/org.xxtea/xxtea-java/badge.svg)](https://maven-badges.herokuapp.com/maven-central/org.xxtea/xxtea-java/)\n[![GitHub release](https://img.shields.io/github/release/xxtea/xxtea-java.svg)](https://github.com/xxtea/xxtea-java/releases)\n[![License](https://img.shields.io/github/license/xxtea/xxtea-java.svg)](http://opensource.org/licenses/MIT)\n\n## Introduction\n\nXXTEA is a fast and secure encryption algorithm. This is a XXTEA library for Java.\n\nIt 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[].\n\nIn addition to providing the API of byte[] encryption and decryption, it also provides some methods to handle string and Base64 encode.\n\n## Usage\n\n```java\npackage org.xxtea.test;\n\nimport org.xxtea.XXTEA;\n\npublic class Main {\n    public static void main(String[] args) {\n        String str = \"Hello World! 你好，中国！\";\n        String key = \"1234567890\";\n        byte[] encrypt_data = XXTEA.encrypt(str, key);\n        String decrypt_data = XXTEA.decryptToString(encrypt_data, key);\n        assert(str.equals(decrypt_data));\n    }\n}\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fxxtea%2Fxxtea-java","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fxxtea%2Fxxtea-java","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fxxtea%2Fxxtea-java/lists"}