XTEA Encryption Tool - Tiny Encryption Algorithm Online
Encrypt and decrypt with XTEA (eXtended TEA). Lightweight 64-bit block cipher for embedded systems and games. Free online XTEA tool.
XTEA Block Cipher
Text (first 16 bytes) or hex (32 hex chars)
Algorithm Details
Type: Block cipher
Block size: 64 bits (8 bytes)
Key size: 128 bits (16 bytes)
Rounds: 64 (standard)
Mode: ECB (this tool)
C Reference Code
void xtea_encrypt(
uint32_t v[2],
uint32_t const key[4]) {
uint32_t v0=v[0], v1=v[1];
uint32_t sum=0;
uint32_t delta=0x9E3779B9;
for (int i=0; i<32; i++) {
v0 += (((v1<<4)^(v1>>5))+v1)
^ (sum+key[sum&3]);
sum += delta;
v1 += (((v0<<4)^(v0>>5))+v0)
^ (sum+key[(sum>>11)&3]);
}
v[0]=v0; v[1]=v1;
}Use Cases
- Arduino encryption
- ESP32/ESP8266 IoT
- Game save encryption
- Embedded firmware
- Resource-constrained devices