Encrypt and decrypt text with the TEA or XTEA block cipher (64-bit block, 128-bit key, 32 cycles). Key is hex and ciphertext is hex. Everything runs in your browser.
TEA (Tiny Encryption Algorithm) and its successor XTEA are tiny Feistel block ciphers by Wheeler and Needham. They are easy to implement but have known weaknesses; XTEA fixes TEA's key-schedule flaws. Data uses PKCS#7 padding to 8-byte blocks and is encrypted in ECB mode with big-endian words, matching common TEA/XTEA implementations. Use AES or ChaCha20 for real security.
Encrypt and decrypt text with the TEA or XTEA block cipher (64-bit block, 128-bit key). Hex key and hex output. Runs entirely in your browser.
TEA (Tiny Encryption Algorithm) and its successor XTEA are very small Feistel block ciphers designed by David Wheeler and Roger Needham. They are famous for being implementable in a handful of lines, which made them popular on constrained devices and in game and embedded code. This tool encrypts and decrypts text with either algorithm.
Input:
Plaintext + 32-hex-char key, XTEA
Output:
Hex ciphertext
TEA or XTEA?
Prefer XTEA. It corrects key-schedule weaknesses in the original TEA, including related-key issues, while keeping the same simple structure.
How is the key handled?
The key is a 128-bit value entered as 32 hexadecimal characters (16 raw bytes), read as four big-endian 32-bit words. Use the refresh button to generate a random key.
Are these safe for real data?
No. TEA and XTEA have known cryptanalytic results and this tool uses ECB. Use AES-GCM or ChaCha20-Poly1305 for real protection.
Does my data leave the browser?
No. Encryption and decryption run locally in your browser.