vless://63258850-8bec-4c9a-bd45-2cbba013fcff@msy.msyssh.online:80?path=%2Fvless&security=none&encryption=none&host=ministeriodesalud.go.cr&type=ws#default-tls-443-MTN
# XXTEA Tool
A faithful Python port of the XXTEA decrypt/encrypt
Supports decrypting base64‑encoded XXTEA ciphertext and encrypting plaintext,
with input from a file, a URL (http/https), or pasted text.
> ⚠️ This is a port of a specific XXTEA implementation that uses the magic
> constant
---
## Features
- 🔓 Decrypt base64 XXTEA strings → plaintext
- 🔒 Encrypt plaintext → base64 XXTEA strings
- 🌐 Input from file path, URL, or direct paste
- 💾 Output saved to the current working directory
- 🧪 Built‑in self‑test to verify correctness
- 🔑 Key is UTF‑8 encoded and zero‑padded/truncated to 16 bytes
---
## Installation
Requires Python 3.6+ (uses only the standard library).
git clone https://github.com/hamadax2/xxtea.git
cd xxtea
Usage
----------
Decrypt
# From a file
python3 xxtea_tool.py decrypt dnslite.txt -k "key"
# From a URL
python3 xxtea_tool.py decrypt https://example.com/encrypted.txt -k "key"
# From pasted base64 text
python3 xxtea_tool.py decrypt "aPEX2ezxffVM5V4OGsYOhNmcmSzGYNY6..." -k "key"
____
Encrypt
# From pasted text
python3 xxtea_tool.py encrypt "some secret text" -k "myKey123"
# From a file
python3 xxtea_tool.py encrypt plain.txt -k "myKey123"
https://github.com/hamadax2/xxtea.git
A faithful Python port of the XXTEA decrypt/encrypt
Supports decrypting base64‑encoded XXTEA ciphertext and encrypting plaintext,
with input from a file, a URL (http/https), or pasted text.
> ⚠️ This is a port of a specific XXTEA implementation that uses the magic
> constant
DELTA = -1638454863 (not the canonical 0x9E3779B9).---
## Features
- 🔓 Decrypt base64 XXTEA strings → plaintext
- 🔒 Encrypt plaintext → base64 XXTEA strings
- 🌐 Input from file path, URL, or direct paste
- 💾 Output saved to the current working directory
- 🧪 Built‑in self‑test to verify correctness
- 🔑 Key is UTF‑8 encoded and zero‑padded/truncated to 16 bytes
---
## Installation
Requires Python 3.6+ (uses only the standard library).
`bashgit clone https://github.com/hamadax2/xxtea.git
cd xxtea
Usage
----------
Decrypt
# From a file
python3 xxtea_tool.py decrypt dnslite.txt -k "key"
# From a URL
python3 xxtea_tool.py decrypt https://example.com/encrypted.txt -k "key"
# From pasted base64 text
python3 xxtea_tool.py decrypt "aPEX2ezxffVM5V4OGsYOhNmcmSzGYNY6..." -k "key"
____
Encrypt
# From pasted text
python3 xxtea_tool.py encrypt "some secret text" -k "myKey123"
# From a file
python3 xxtea_tool.py encrypt plain.txt -k "myKey123"
https://github.com/hamadax2/xxtea.git
GitHub
GitHub - hamadax2/xxtea: A faithful Python port of the XXTEA decrypt/encrypt logic from `xxtea.java`. Supports decrypting base64‑encoded…
A faithful Python port of the XXTEA decrypt/encrypt logic from `xxtea.java`. Supports decrypting base64‑encoded XXTEA ciphertext and encrypting plaintext, with input from a **file**, a **URL (http...
DecryptionExample.java
5.4 KB
Encryption Details:
1.
Algorithm: AES (Advanced Encryption Standard)
2.
Mode: GCM (Galois/Counter Mode)
3.
Key Size: 256-bit (32 bytes)
4.
IV (Initialization Vector) Size: 12 bytes (96 bits)
5.
Authentication Tag Size: 16 bytes (128 bits)
6.
Padding: No padding (GCM mode doesn't require padding)
7.
Data Format:
◦
Encrypted data is Base64-encoded
◦
The encrypted binary data contains:
▪
First 12 bytes: IV (Initialization Vector)
▪
Remaining bytes: Ciphertext + Authentication Tag
USAGE
javac DecryptionExample
java DecryptionExample <hex-key> <input-file> [output-file]
Example
java DecryptionExample 4142434445464748495051525354555661626364656667686970717273747576 encrypted_data.txt decrypted_output.txt
1.
Algorithm: AES (Advanced Encryption Standard)
2.
Mode: GCM (Galois/Counter Mode)
3.
Key Size: 256-bit (32 bytes)
4.
IV (Initialization Vector) Size: 12 bytes (96 bits)
5.
Authentication Tag Size: 16 bytes (128 bits)
6.
Padding: No padding (GCM mode doesn't require padding)
7.
Data Format:
◦
Encrypted data is Base64-encoded
◦
The encrypted binary data contains:
▪
First 12 bytes: IV (Initialization Vector)
▪
Remaining bytes: Ciphertext + Authentication Tag
USAGE
javac DecryptionExample
java DecryptionExample <hex-key> <input-file> [output-file]
Example
java DecryptionExample 4142434445464748495051525354555661626364656667686970717273747576 encrypted_data.txt decrypted_output.txt