PDA

View Full Version : PHP XXTEA for php?



four4swords
October 2nd, 2008, 07:29 PM
hi,

Does anyone know if there's a XXTEA class/file/function for php?

XTea is the extended corrected version of TEA right? It's more safer.. but it's a bit slower.. However I've heard that .. XXTea is the even safer.. and "Faster" than it's predecessors..
Well that's what i've read from blogs and stuff.. lol Correct me if i'm wrong.

But yeah.. does anyone know of XXTea encyption and decryption for php?

*Side question.. How unsecure is TEA? I mean.. is it easily broken into? Or is it still pretty secure.. just not AS secure as Xtea and XXTea?

Thanks!

Wilhelm Murdoch
October 2nd, 2008, 08:17 PM
Do you like PEAR? (http://pear.php.net/package/Crypt_XXTEA/docs/latest/Crypt_XXTEA/_Crypt_XXTEA-0.9.0---Crypt---XXTEA.php.html)

Personally, I hate PEAR, but that should speed you along your way.

Here is a great read on the corrected-block tiny encryption algorithm. (http://en.wikipedia.org/wiki/XXTEA)

Seems interesting. I might just make a PHP port myself.

four4swords
October 2nd, 2008, 10:42 PM
Ohh.. Thanks a lot!

Just another question.. Which would you recommend to be used with Flash?
Tea ,XTEA or XXTEA?

If i were to be sending variables across.. i've noticed that XTEA and XXTEA seem to spit out some very odd looking characters while TEA spits out the normal alphabetical characters.. i guess this is the part which makes XXTEA more secure.. but.. if i were to use XXTEA with Flash.. do you think the symbols might confuse flash?

Or does it work fine either way?